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

Re: Windows hook scripts

From: Greg Thomas <thomasgd_at_omc.bt.co.uk>
Date: 2005-09-20 10:35:18 CEST

On Mon, 19 Sep 2005 11:19:34 -0400 (EDT), plmrsrch@plmresearch.com
wrote:

>OK, I've searched high and low for some _good_ examples of windows .bat
>files that are called via hooks scripts - not much luck.

FWIW, I have the following pre-commit.bat script that launches any
perl scripts that begin pre-commit-*.pl as pre commit hooks.

 set PERL=C:\Perl\bin\perl.exe
 set EXIT_CODE=0

 for %%I in ("%~dp0/pre-commit-*.pl") do %PERL% %%I %1 %2 & if ERRORLEVEL 1 set EXIT_CODE=1

 exit %EXIT_CODE%

It's easy enough to change for post-commit hooks, etc. - that's left
as an exercise for the reader!

HTH,

Greg

-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 20 10:38:15 2005

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

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