gestion cvs et chgrp
This commit is contained in:
parent
b6a59f9dcb
commit
d262e9576c
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue