Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.
In the CVSNT manual Appendix B talks about the parameters that can be passed to a script. I have a shell script called testScript.sh that is called from the commitinfo file. I've been trying to pass a few options like %s %m %p. Problem is, they aren't getting expanded at the time the script is invoked. The entry in the commitinfo looks like this: DEFAULT /usr/local/cvs/CVSROOT/testScript.sh %s %m %p The shell script just takes these and echos them back out: #!/bin/bash # # Test Script - All this does is echo back to the user when invoked. # echo "+++++++++++++++++++++++++++++++++++++++" echo "This is a test of the commitinfo script handling. Please ignore." echo "$0 $@" echo "+++++++++++++++++++++++++++++++++++++++" Here's the output of a commit done remotely with WinCVS: cvs commit -m "Adding line to test the commitinfo script." -- newFile (in directory C:\CVS_WORK\sandbox\DonZ_Test\) +++++++++++++++++++++++++++++++++++++++ This is a test of the commitinfo script handling. Please ignore. /usr/local/cvs/CVSROOT/testScript.sh %s %m %p /usr/local/cvs/sandbox/DonZ_Test +++++++++++++++++++++++++++++++++++++++ Checking in newFile; /usr/local/cvs/sandbox/DonZ_Test/newFile,v <-- newFile new revision: 1.9; previous revision: 1.8 done ***** CVS exited normally with code 0 ***** It's not coming back with output that I expected. I was expecting to see the %s %m %p expanded, and didn't expect to see the physical location in the repository displayed (which wasn't one of the passed parameters!). Do these parameters need to be quoted when passed to the shell script? Thanks, Don Zielke American Electric Power Direct (614) 583-6337 Audinet 8-220-6337 Email dzielke (at) aep.com --- KForce Professional Staffing 501 W. Schrock Road Suite 207 Westerville, OH 43081