alliance/CVSROOT/postconfig

58 lines
1.2 KiB
Bash
Executable File

#! /bin/sh
#
# Author : Olivier.Sirol@lip6.fr
# Date : sept 1999
# Description :
#
# (C) Czo 1998,99
# This code is released under GPL
#
# $Id: postconfig,v 1.9 1999/09/21 15:58:38 czo Exp $
#
PATH=/asim/gnu/bin:/usr/ucb:/usr/etc:/bin:${PATH}
TMPFILE=/tmp/cvslog.$$
FINGER=`who am i | gawk '{gsub(/^[^!]*!/,""); print $1}'`
(
echo "===================================================================="
echo "Modification le : `date`"
echo "Par : $FINGER"
echo "===================================================================="
echo ""
cat
) > "$TMPFILE"
MAIL_SUBJECT=`cat "$TMPFILE" | gawk '
/Update of \/users\/outil1\/alliance\/cvsroot\// {
gsub(/Update of \/users\/outil1\/alliance\/cvsroot\//, "");
gsub(/alliance\//, "");
gsub(/share\//, "");
gsub(/sources\//, "");
SUJ=$0
}
END {
printf("CVS loginfo, %s", SUJ)
}'`
echo $MAIL_SUBJECT
cat "$TMPFILE" >> $CVSROOT/CVSROOT/log-commit
cat "$TMPFILE" | mail -s "ALC : $MAIL_SUBJECT" alliance-programmers@asim.lip6.fr
# 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 &
#chgrp -R alliance /users/outil1/alliance/latest
rm -f "$TMPFILE" dummy
exit 0