[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

check-mime-type.pl on Windows

From: Matthias Buecher / Germany <maddes_at_go.to>
Date: 2007-08-14 22:23:06 CEST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hello everybody,

I'm trying to use check-mime-type.pl on Windows.

The Pre-Commit batch file calls it the following way, which is working
fine:

  REM *** Check MIME types
  D:\Repositories\SVN\_Scripts\check-mime-type.pl %1 %2
  if not errorlevel 1 then goto mime_ok
  echo Mime error 1>&2
  :mime_ok

In the Perl script I changed two lines to use my correct Windows pathes:

  44: my $svnlook = "D:\\Programme\\Coding\\SubVersion\\bin\\svnlook.exe";

  99: my $tmp_dir = 'D:\\TEMP\\SVN';

But when I submit anything, then I get the following message line:

  Error: D:\Repositories\SVN\_Scripts\check-mime-type.pl:
`D:\Programme\Coding\SubVersion\bin\svnlook.exe changed
D:/Repositories/SVN/TestRepo -t 4-1' failed with no output.

I assume this is related to the "safe_read_from_pipe" function.

How I can make the script work on Windows too?

Any help is greatly appreciated.

Regards
Maddes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFGwg8pUXXT+9wZdbURAtk/AJ9zyUsox5IDjcAQxn73y+Adq/Zv/QCgnKB1
FLPjbWB0XP6s2gN13MV9mu8=
=zy83
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 15 22:51:15 2007

This is an archived mail posted to the Subversion Users mailing list.