pour ludo

This commit is contained in:
Olivier Sirol 1999-09-23 17:17:05 +00:00
parent 18dd805acb
commit 548d36613b
2 changed files with 15 additions and 7 deletions

View File

@ -17,10 +17,10 @@
# #
# For example: # For example:
#DEFAULT (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog #DEFAULT (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
#ALL (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/log-commit #ALL (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/log-commit
#^CVSROOT (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/log-cvsroot #^CVSROOT (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/log-cvsroot
#ALL (date ; cat ; (sleep 2 ; cd /users/outil1/alliance/latest ; cvs -q update -d ) &) >> $CVSROOT/CVSROOT/log-latest 2>&1 #ALL (date ; cat ; (sleep 2 ; cd /users/outil1/alliance/latest ; cvs -q update -d ) &) >> $CVSROOT/CVSROOT/log-latest 2>&1
ALL (cat > /dev/null 2>&1 ; echo "Pas taper...")
ALL (/users/outil1/alliance/cvsroot/CVSROOT/postconfig) >> $CVSROOT/CVSROOT/log-postconfig ALL (/users/outil1/alliance/cvsroot/CVSROOT/postconfig) >> $CVSROOT/CVSROOT/log-postconfig

View File

@ -7,7 +7,7 @@
# (C) Czo 1998,99 # (C) Czo 1998,99
# This code is released under GPL # This code is released under GPL
# #
# $Id: postconfig,v 1.9 1999/09/21 15:58:38 czo Exp $ # $Id: postconfig,v 1.10 1999/09/23 17:17:05 czo Exp $
# #
@ -36,7 +36,17 @@ END {
printf("CVS loginfo, %s", SUJ) printf("CVS loginfo, %s", SUJ)
}'` }'`
echo $MAIL_SUBJECT UPDATE=`cat "$TMPFILE" | gawk '
/Update of \/users\/outil1\/alliance\/cvsroot\// {
gsub(/Update of \/users\/outil1\/alliance\/cvsroot\//, "\/users\/outil1\/alliance\/latest\/");
SUJ=$0
}
END {
printf("%s", SUJ)
}'`
#echo $UPDATE
#exit 7
cat "$TMPFILE" >> $CVSROOT/CVSROOT/log-commit cat "$TMPFILE" >> $CVSROOT/CVSROOT/log-commit
cat "$TMPFILE" | mail -s "ALC : $MAIL_SUBJECT" alliance-programmers@asim.lip6.fr cat "$TMPFILE" | mail -s "ALC : $MAIL_SUBJECT" alliance-programmers@asim.lip6.fr
@ -45,12 +55,10 @@ cat "$TMPFILE" | mail -s "ALC : $MAIL_SUBJECT" alliance-programmers@asim.lip6.f
# find cvsroot -type d | xargs chmod g+s # find cvsroot -type d | xargs chmod g+s
# devrait marcher... # devrait marcher...
#chgrp -R alliance /users/outil1/alliance/cvsroot #chgrp -R alliance /users/outil1/alliance/cvsroot
cd /users/outil1/alliance/latest cd "$UPDATE"
cvs -q update -d & cvs -q update -d -P
#chgrp -R alliance /users/outil1/alliance/latest #chgrp -R alliance /users/outil1/alliance/latest
rm -f "$TMPFILE" dummy rm -f "$TMPFILE" dummy
exit 0 exit 0