[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: Kevin Pilch-Bisson <kevin_at_pilch-bisson.net>
Date: 2003-01-14 11:15:41 CET

On Tue, Jan 14, 2003 at 06:56:55PM +1300, 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
> --
> "Hanging is too good for a man who makes puns; he should be drawn and
> quoted."
> -- Fred Allen
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  • application/pgp-signature attachment: stored
Received on Tue Jan 14 18:17:42 2003

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.