Send commit messages to mailing lists.
This commit is contained in:
@@ -10,16 +10,49 @@
|
|||||||
# when log_accum is run from here), so we just send out a bogus little
|
# when log_accum is run from here), so we just send out a bogus little
|
||||||
# by-hand update note.
|
# by-hand update note.
|
||||||
|
|
||||||
|
# $1 is of the format "WEB_PAGE_DIRNAME" with the last component being
|
||||||
|
# the project's name
|
||||||
|
|
||||||
|
# $2 is of the format "DIRECTORYNAME FILENAME" with no final slash on DNAME.
|
||||||
|
# DNAME is the directory name inside the project's CVS repository. e.g.
|
||||||
|
# $2 can look like "htdocs index.html,1.3 foo.html,1.5"
|
||||||
|
|
||||||
|
|
||||||
|
SHORTNAMES=`echo $2 | sed 's|,[^ ]*||g'`
|
||||||
REPONAME=`echo $1 | sed -e 's,/www/sourceware/htdocs/,,' -e 's,/.*$,,'`
|
REPONAME=`echo $1 | sed -e 's,/www/sourceware/htdocs/,,' -e 's,/.*$,,'`
|
||||||
echo Files modified in the $REPONAME repository. |
|
|
||||||
/bin/mail -s "$2" green@cygnus.com jsm@cygnus.com
|
|
||||||
|
|
||||||
|
####------------------------------------------
|
||||||
|
# Update the web pages
|
||||||
|
####------------------------------------------
|
||||||
|
|
||||||
# try to avoid a race (this kludge from the cvs docs!)
|
# try to avoid a race (this kludge from the cvs docs)
|
||||||
/bin/sleep 2
|
/bin/sleep 2
|
||||||
cd $1
|
cd $1
|
||||||
|
|
||||||
# $1 is of the format "DIRECTORYNAME FILENAME" with no final slash on DNAME.
|
|
||||||
|
|
||||||
DIRNAME=`echo $2 | sed -e 's, .*,,' -e 's,^htdocs$,.,' -e 's,htdocs,.,'`
|
DIRNAME=`echo $2 | sed -e 's, .*,,' -e 's,^htdocs$,.,' -e 's,htdocs,.,'`
|
||||||
/usr/local/bin/cvs -q update -d -P -l $DIRNAME
|
/usr/local/bin/cvs -q update -d -P -l $DIRNAME
|
||||||
|
|
||||||
|
|
||||||
|
# DIRNAME has the last component of the directory name; $1 has the
|
||||||
|
# full prefix. Combine them to get into the final real directory.
|
||||||
|
|
||||||
|
cd $1/$DIRNAME
|
||||||
|
|
||||||
|
####------------------------------------------
|
||||||
|
# Send mail notification about the update
|
||||||
|
####------------------------------------------
|
||||||
|
|
||||||
|
firstfile=`echo $2 | sed -e 's,^[^ ]* ,,' -e 's, .*,,'`
|
||||||
|
filename=`echo $firstfile | sed 's|,[^,]*$||'`
|
||||||
|
fileversion=`echo $firstfile | sed 's|^.*,||'`
|
||||||
|
|
||||||
|
QMAILHOST=sourceware.cygnus.com
|
||||||
|
export QMAILHOST
|
||||||
|
(
|
||||||
|
echo Files modified in the $REPONAME repository. Log entry:
|
||||||
|
echo ""
|
||||||
|
/usr/local/bin/cvs log -N -r$fileversion $filename | sed -e '1,/^date: /d' -e '$d'
|
||||||
|
) |
|
||||||
|
/bin/mail -s "$SHORTNAMES" sourceware-cvs-${REPONAME}-webpages@sourceware.cygnus.com
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
#DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
|
#DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
|
||||||
# or
|
# or
|
||||||
#DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog
|
#DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog
|
||||||
^htdocs ($CVSROOT/CVSROOT/auto_checkout /www/sourceware/htdocs/libffi %s >> $CVSROOT/CVSROOT/updatelog 2>&1 &)
|
|
||||||
|
|
||||||
DEFAULT /usr/bin/perl $CVSROOT/CVSROOT/log_accum -m green@cygnus.com -m jsm@cygnus.com -s %s
|
^htdocs ($CVSROOT/CVSROOT/auto_checkout /www/sourceware/htdocs/libffi %{sv} >> $CVSROOT/CVSROOT/updatelog 2>&1 &)
|
||||||
|
|
||||||
|
DEFAULT (QMAILHOST=sourceware.cygnus.com /usr/bin/perl $CVSROOT/CVSROOT/log_accum -m sourceware-cvs-libffi@sourceware.cygnus.com -s %s)
|
||||||
|
|||||||
Reference in New Issue
Block a user