Hi Paulo,
You want "command substitution".
Depending on what Windows platform you are using
(2000, XP, etc.) you will find this feature in the WSH,
via an exec command.
What I'm doing is using a .bat file hook script which
simply delegates to a WinBash script. Bash supports
command substitution with the single-back quote.
For winbash and supporting unix utils for windows,
see below for an exerpt of a message earlier this week
from Cristi BALAN:
>
> | Use unxutils and winbash...
> | http://unxutils.sourceforge.net/
> | http://winbash.tigris.org/
> |
You will find you need to be explicit with the paths to
executables in this model, particularly the path to the
bash.exe.
Best of luck,
Walden Mathews
----- Original Message -----
From: "Paulo Ruivo" <pruivo@partner.auchan.com>
To: <users@subversion.tigris.org>
Sent: Friday, October 29, 2004 2:09 PM
Subject: windows hooks
Hi,
My subversion server is running in windows, and I want to make some hooks.
I was thinking in making some executables in c, but I need to call svn
functions
inside the c code. I'm having problems in getting the results of functions
such as
the "svnlook author .." .
I think the way to call this function is with the function system(command),
but how do I read the result?
Is there a better way to implement the hooks in windows?
Thank you,
Paulo Ruivo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
__________ NOD32 1.912 (20041029) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 29 21:09:36 2004