I am having difficulty using variables in server mode.
In my file ( CVSROOT/loginfo ) we are calling a perl script to send
email notification for commits. The perl script uses a variable (nocvsmail)
and runs normaly when run localy.
When runing in server mode from a client, when
root does a suid on the remote side this variable is not picked up even if
it is defined in the users shell.
So step two is to pass this variable ( cvs -s nocvsmail=1 commit file.txt )
when
doing a commit. Now in ( CVSROOT/loginfo ) if we call the perl script in the
following example...
^utilities $CVSROOT/CVSROOT/log -v ${=NOCVSMAIL}
Now the perl script is happy. If we don't pass the variable the server does
not send it
as a NULL and we receive an error message.
I can't check in a subshell ( if ${=NOCVAMAIL} > "" ) because the subshell
has no reference to this variable.
Can I set a variable in ( CVSROOT/loginfo ) before the rules?
Any ideas would be appreciated, please mail me directly if possible.
-Bruce-
--------------------------------------------------------------------------
B r u c e F e r j u l i a n
EMC Corporation
171 South Street
Hopkinton, MA 01748
e-mail : [EMAIL PROTECTED]
--------------------------------------------------------------------------
_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs