diff --git a/CVSROOT/loginfo b/CVSROOT/loginfo index 1c6f3d1b..b31f9814 100644 --- a/CVSROOT/loginfo +++ b/CVSROOT/loginfo @@ -17,10 +17,10 @@ # # For example: #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 #^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 (cat > /dev/null 2>&1 ; echo "Pas taper...") ALL (/users/outil1/alliance/cvsroot/CVSROOT/postconfig) >> $CVSROOT/CVSROOT/log-postconfig diff --git a/CVSROOT/postconfig b/CVSROOT/postconfig index 6a6a0ce4..8b7cdfa0 100755 --- a/CVSROOT/postconfig +++ b/CVSROOT/postconfig @@ -7,7 +7,7 @@ # (C) Czo 1998,99 # 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) }'` -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" | 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 # devrait marcher... #chgrp -R alliance /users/outil1/alliance/cvsroot -cd /users/outil1/alliance/latest -cvs -q update -d & +cd "$UPDATE" +cvs -q update -d -P #chgrp -R alliance /users/outil1/alliance/latest - - rm -f "$TMPFILE" dummy exit 0