From 55ca5f21c0682f2c00a68a69593e13a006dde832 Mon Sep 17 00:00:00 2001 From: Olivier Sirol Date: Mon, 6 May 2002 13:30:21 +0000 Subject: [PATCH] log des tags --- CVSROOT/checkoutlist | 1 + CVSROOT/posttaginfo | 49 ++++++++++++++++++++++++++++++++++++++++++++ CVSROOT/taginfo | 1 + 3 files changed, 51 insertions(+) create mode 100755 CVSROOT/posttaginfo diff --git a/CVSROOT/checkoutlist b/CVSROOT/checkoutlist index f32f2993..f5e44bce 100644 --- a/CVSROOT/checkoutlist +++ b/CVSROOT/checkoutlist @@ -13,6 +13,7 @@ # comment lines begin with '#' postconfig "ERRRROR : a 'checkoutlist' was not found" +posttaginfo "ERRRROR : a 'checkoutlist' was not found" fastinstool "ERRRROR : a 'checkoutlist' was not found" instool "ERRRROR : a 'checkoutlist' was not found" updatelibmk "ERRRROR : a 'checkoutlist' was not found" diff --git a/CVSROOT/posttaginfo b/CVSROOT/posttaginfo new file mode 100755 index 00000000..7c65f799 --- /dev/null +++ b/CVSROOT/posttaginfo @@ -0,0 +1,49 @@ +#!/bin/sh +# +# Filename: posttaginfo +# Copyright (C) 1999, 2000 Czo +# License: GPL (http://www.gnu.org/copyleft/gpl.html) +# Started: Sept 1999 +# Last Change: Monday 06 May 2002, 15:29 +# Edit Time: 1:42:05 +# Description: +# +# $Id: posttaginfo,v 1.1 2002/05/06 13:30:21 czo Exp $ +# +# +# 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}'` +MAIL_SUBJECT=`echo "CVS taginfo, $1` + +( +echo "===================================================================" +echo "TAG : `date`" +echo "Par : $USER" +echo "===================================================================" +echo "" +echo "$2 of $1 in $3" +shift +shift +shift +echo "$*" + +) > "$TMPFILE" + + +cat "$TMPFILE" | mail -s "ALC : $MAIL_SUBJECT" alliance-programmers@asim.lip6.fr + +rm -f "$TMPFILE" dummy +) > /dev/null 2>&1 & + +exit 0 + + diff --git a/CVSROOT/taginfo b/CVSROOT/taginfo index 274a46dd..6b3efb0e 100644 --- a/CVSROOT/taginfo +++ b/CVSROOT/taginfo @@ -18,3 +18,4 @@ # # If the name "ALL" appears as a regular expression it is always used # in addition to the first matching regex or "DEFAULT". +ALL /users/outil/alliance/cvsroot/CVSROOT/posttaginfo