2002-05-06 08:30:21 -05:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Filename: posttaginfo
|
|
|
|
# Copyright (C) 1999, 2000 Czo <Olivier.Sirol@lip6.fr>
|
|
|
|
# License: GPL (http://www.gnu.org/copyleft/gpl.html)
|
|
|
|
# Started: Sept 1999
|
2002-09-09 04:09:22 -05:00
|
|
|
# Last Change: Monday 09 September 2002, 11:09
|
|
|
|
# Edit Time: 1:45:24
|
2002-05-06 08:30:21 -05:00
|
|
|
# Description:
|
|
|
|
#
|
2002-09-09 04:09:22 -05:00
|
|
|
# $Id: posttaginfo,v 1.3 2002/09/09 09:09:22 czo Exp $
|
2002-05-06 08:30:21 -05:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# The arguments passed to the command are, in order,
|
|
|
|
# the tagname,
|
|
|
|
# operation (add for tag, mov for tag -F, and del for tag -d),
|
|
|
|
# repository,
|
|
|
|
# and any remaining are pairs of filename revision.
|
|
|
|
# A non-zero exit of the filter program will cause the tag to be aborted.
|
|
|
|
#
|
|
|
|
|
|
|
|
TMPFILE=cvslog.$$
|
|
|
|
FINGER=`who am i | gawk '{gsub(/^[^\!]*\!/,""); print $1}'`
|
2002-05-06 08:39:02 -05:00
|
|
|
MAIL_SUBJECT="CVS taginfo $1"
|
2002-05-06 08:30:21 -05:00
|
|
|
|
|
|
|
(
|
2002-05-06 08:39:02 -05:00
|
|
|
(echo "==================================================================="
|
2002-05-06 08:30:21 -05:00
|
|
|
echo "TAG : `date`"
|
|
|
|
echo "Par : $USER"
|
|
|
|
echo "==================================================================="
|
|
|
|
echo ""
|
|
|
|
echo "$2 of $1 in $3"
|
|
|
|
shift
|
|
|
|
shift
|
|
|
|
shift
|
2002-05-06 08:39:02 -05:00
|
|
|
echo "$*" ) > "$TMPFILE"
|
2002-05-06 08:30:21 -05:00
|
|
|
|
|
|
|
|
2002-09-09 04:09:22 -05:00
|
|
|
cat "$TMPFILE" | mail -s "ALC : $MAIL_SUBJECT" alliance-cvs@asim.lip6.fr
|
2002-05-06 08:30:21 -05:00
|
|
|
|
|
|
|
rm -f "$TMPFILE" dummy
|
|
|
|
) > /dev/null 2>&1 &
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|