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

Re: [PATCH] run hook-scripts on WIN32

From: Chris Foote <Chris.Foote_at_xtra.co.nz>
Date: 2003-01-15 00:50:49 CET

Kevin Pilch-Bisson wrote:
> Carey Evans wrote:
> > rbb@rkbloom.net wrote:
> >
> > >Unfortunately, no. APR just calls the native Windows CreateProcess call,
> > >so if Windows can't do it, neither can APR. The best thing you could do,
> > >IMNSHO, is to just hard-code this to $(unix_script_name).bat on Windows.
> > >This allows the Windows environment to do the right thing, and it removes
> > >all the checks from the SVN code. The only problem with it, is that most
> > >Windows developers consider batch files an incredible hack.
> >
> > Another problem would be that batch files can't set an exit status, even
> > if the program they call fails, or doesn't exist. If you had to pick a
> > single extension, .wsf would be better: JScript and VBScript are much
> > more like real programming languages than batch files are.
> >
> Of course batch can set an exit status, just use
>
> exit 1
> instead of
> exit

This may be true for XP (and 2000 ??) but I don't think this is true for NT 4.0.
On XP it would be better to use:
EXIT [/B] [exitCode]
to exit the current batch script.

Chris.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 15 00:51:48 2003

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