[cvsnt] Scripting
Bo Berglund
Bo.Berglund at system3r.se
Mon Jun 23 12:39:53 BST 2003
You should probably use the postcommit script file insetad because it is triggered when everything is ready and there are no dangling tasks remaining.
The exact syntax is probably available on the cvsnt.org website, but should be similar to the other scripts:
<regular expression> <command to execute> <command line parameters>
where:
<regular expression> is a string telling CVSNT which selection to trigger for.
<command to execute> is a normal Windows command to run (executable only) and must *not* contain spaces
<command line parameters> are a space delimited list (that is why spaces are not allaowed above) of command parameters
Example:
ALL D:\Programs\CVSNT\mybatchfile.bat thisparameter thatparameter
will execute the mybatchfile.bat with the two given parameters for every commit that is done (ALL).
/Bo
-----Original Message-----
From: ERNST KUSCHKE [mailto:ernstkus at sasa.org.za]
Sent: den 23 juni 2003 11:49
To: <cvsnt at cvsnt.org
Subject: [cvsnt] Scripting
Greetings to everyone on the list - I'm new here.
I recently started digging into the world of CVS, and it's all still pretty overwhelming.
I run the CVSNT server on a Windows 2000 server.
As soon as I commit a file to a repository, I would like a dummy-copy of this new version to be copied to a certain directory, and then run a batch-file against this dummy-file.
I know that I should probably do some scripting in the loginfo -file.
What exactly is the format of this file? I see lots of Perl examples. Can I run a Windows batch-file from there? (IOW something like copy c:\blah.foo d:\blah.foo)??
Thanks,
Ernst Kuschke
Software Developer
Information Systems
Finance & Administration Division
South African Sugar Association
Tel: +27 (0) 31 539-5300
Fax: +27 (0) 31 539-2951
http://www.sugar.org.za/
**************************************************************************************************************************************
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Any comments or opinions in this email or its attachments are merely stating our views and carry no guarantee as to their accuracy.
Although the sender endeavours to maintain a computer virus free network, the sender does not warrant that a computer virus has not been transmitted herewith and urges you to virus-check this e-mail message. Accordingly, the sender will not be liable for any damages as a result of transmission of a computer virus with this e-mail message
The South African Sugar Association reserves the right to monitor all e-mail communications through its networks.
**************************************************************************************************************************************
_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
More information about the cvsnt
mailing list