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

[PATCH] Enhance platform support of hook script check-mime-type.pl (Windows)

From: Matthias Buecher / Germany <mail_at_maddes.net>
Date: Mon, 31 Mar 2014 22:12:32 +0200

Enhance platform support of hook script check-mime-type.pl
Adopted from contrib/client-side/svn_load_dirs/svn_load_dirs.pl.in
(r1295006) [1]

* contrib/hook-scripts/check-mime-type.pl:
  (tmp_dir) Cross Platform: sane temp dir creation via File::Temp
function tempdir()
  (sub safe_read_from_pipe) Windows/DOS: does not support openfork and
files/paths with spaces have to be put in quotes

Patch by: Matthias B├╝cher <mail_at_maddes.net>

Tested with Subversion 1.6 to 1.8
for 1.8.5+ you also need Leo Davis' patch [4] (although I personally
kept chdir to temp dir)

[2] http://perldoc.perl.org/perlport.html#Interprocess-Communication-(IPC)
[3] http://perldoc.perl.org/perlport.html#PLATFORMS


Received on 2014-03-31 22:13:12 CEST

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