58 lines
1.4 KiB
Bash
Executable File
58 lines
1.4 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.17 1999/11/22 14:57:40 czo Exp $
|
|
#
|
|
|
|
|
|
PATH=/asim/gnu/bin:/usr/ucb:/usr/etc:/usr/local/bin:/bin:/usr/bin:${PATH}
|
|
TMPFILE=/tmp/cvslog.$$
|
|
FINGER=`who am i | gawk '{gsub(/^[^\!]*\!/,""); print $1}'`
|
|
|
|
(
|
|
echo "===================================================================="
|
|
echo "Modification le : `date`"
|
|
echo "Par : $FINGER"
|
|
echo "===================================================================="
|
|
echo ""
|
|
cat
|
|
echo ""
|
|
echo "===================================================================="
|
|
echo "Ce message est envoyé au personnes abonnées à alliance-programmers"
|
|
echo "Pour plus d'information sur cette mailling-list, visitez :"
|
|
echo "http://www-asim.lip6.fr/alliance/mailing-lists/"
|
|
|
|
) > "$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)
|
|
}'`
|
|
|
|
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
|
|
# cvs -q update -d -P & en crontab ....
|
|
|
|
rm -f "$TMPFILE" dummy
|
|
|
|
exit 0
|
|
|