gestion cvs et chgrp

This commit is contained in:
Olivier Sirol 1999-09-16 18:07:59 +00:00
parent b6a59f9dcb
commit d262e9576c
2 changed files with 26 additions and 16 deletions

View File

@ -18,13 +18,12 @@
# For example:
#DEFAULT (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
#mail %s -s "ALC: CVS notify" alcteam@asim.lip6.fr
#ALL (chgrp -R alliance /users/outil1/alliance/cvsroot) >> $CVSROOT/CVSROOT/log-commit
ALL (/users/outil1/alliance/cvsroot/CVSROOT/postconfig &) >> $CVSROOT/CVSROOT/log-postconfig
ALL (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/log-commit
ALL (echo ""; who am i; echo %s; date; cat) | mail -s "ALC : CVS loginfo" alcteam@asim.lip6.fr
ALL (date ; cat ; (sleep 2 ; cd /users/outil1/alliance/latest ; cvs -q update -d ) &) >> $CVSROOT/CVSROOT/log-latest 2>&1
^CVSROOT (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/log-cvsroot
#ALL (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/log-commit
#ALL (echo ""; who am i; echo %s; date; cat) | mail -s "ALC : CVS loginfo" alcteam@asim.lip6.fr
#ALL (date ; cat ; (sleep 2 ; cd /users/outil1/alliance/latest ; cvs -q update -d ) &) >> $CVSROOT/CVSROOT/log-latest 2>&1
#^CVSROOT (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/log-cvsroot
ALL (/users/outil1/alliance/cvsroot/CVSROOT/postconfig) >> $CVSROOT/CVSROOT/log-postconfig

View File

@ -1,16 +1,27 @@
#! /bin/sh
#mail %s -s "ALC: CVS notify" alcteam@asim.lip6.fr
#ALL (chgrp -R alliance /users/outil1/alliance/cvsroot) >> $CVSROOT/CVSROOT/log-commit
#ALL (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/log-commit
#ALL (echo ""; who am i; echo %s; date; cat) | mail -s "ALC : CVS loginfo" alcteam@asim.lip6.fr
#ALL (date ; cat ; (sleep 2 ; cd /users/outil1/alliance/latest ; cvs -q update -d ) &) >> $CVSROOT/CVSROOT/log-latest 2>&1
#^CVSROOT (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/log-cvsroot
PATH=/asim/gnu/bin:/usr/ucb:/usr/etc:/bin:${PATH}
TMPFILE=/tmp/cvslog.$$
FINGER=`who am i | gawk '{gsub(/^[^!]*!/,""); print $1}'`
(
echo "Modification le : `date`"
echo "Par : $FINGER"
echo ""
cat
) > "$TMPFILE"
cat
sleep 60
chgrp -R alliance /users/outil1/alliance/cvsroot
cd /users/outil1/alliance/latest
cvs -q update -d
chgrp -R alliance /users/outil1/alliance/latest
date > $CVSROOT/CVSROOT/log-czo
cat "$TMPFILE" >> $CVSROOT/CVSROOT/log-commit
cat "$TMPFILE" | mail -s "ALC : CVS loginfo" alliance-programmers@asim.lip6.fr
rm -f "$TMPFILE" dummy
exit 0