info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Info-cvs] CVS loginfo bug


From: Peter Kennard
Subject: [Info-cvs] CVS loginfo bug
Date: Tue, 19 Sep 2000 18:54:31 -0700

I have a little script I run from loginfo which looks like the below.  I
gives me a "waiting for (current user)'s lock" error when I run CVS on the
server machine locally. It is OK on a remote client. If I use "sh" instead
of "bash" to run the script from loginfo it works fine.  It gives me the
error with "bash".  I am running an unpatched cvs-1.10.8 on RedHat Linux.
I just thought I would bring it to your attention.

inside "loginfo"

# mod     script                         group files  module
m1 bash ${CVSROOT}/CVSROOT/onloginfo.sh         g1      %s      m1 
m2 bash ${CVSROOT}/CVSROOT/onloginfo.sh         g2      %s      m2 
...

inside "onloginfo.sh"

# the purpose of this is to make sure the "group" is set for each module
# so all the proper users can have access to it.

group=$1
files=$2

declare -i state=0
declare dir


for name in ${files}
do
    if [ ${state} = 0 ]; then
        dir=${CVSROOT}/${name}
        state=1
    elif [ ${state}${name} = 1- ]; then
        chown .${group} ${dir}
        state=2
    elif [ ${state} = 1 ]; then
        chown .${group} ${dir}/${name},v
    fi

done





reply via email to

[Prev in Thread] Current Thread [Next in Thread]