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

[PATCH] commit-email.pl : move $tmp_dir into configuration section

From: Michael Wallendahl <mwallend_at_spikus.com>
Date: 2005-02-01 02:23:46 CET

Attached is a small patch to commit-email.pl. Just moved an existing
variable declaration into the configuration section of the script.

Let me know if there is anything else you need from me.

-Mike

* tools/hook-scripts/commit-email.pl.in: Moved declaration of $tmp_dir
  into configuration section of script. Added comment with examples.

Index: commit-email.pl.in
===================================================================
--- commit-email.pl.in (revision 12889)
+++ commit-email.pl.in (working copy)
@@ -46,6 +46,10 @@
 # Svnlook path.
 my $svnlook = "@SVN_BINDIR@/svnlook";
 
+# Path to directory where script can create temporary files/directories.
+# For example: '/tmp' or 'C:/temp' or "$ENV{'TEMP'}"
+my $tmp_dir = '/tmp';
+
 # By default, when a file is deleted from the repository, svnlook diff
 # prints the entire contents of the file. If you want to save space
 # in the log and email messages by not printing the file, then set
@@ -214,9 +218,8 @@
 ######################################################################
 # Harvest data using svnlook.
 
-# Change into /tmp so that svnlook diff can create its .svnlook
+# Change into $tmp_dir so that svnlook diff can create its .svnlook
 # directory.
-my $tmp_dir = '/tmp';
 chdir($tmp_dir)
   or die "$0: cannot chdir `$tmp_dir': $!\n";
 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 1 02:40:45 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.