| 1 |
|
#!/bin/sh |
| 2 |
|
|
| 3 |
– |
#--------------------------------------------------------- |
| 4 |
– |
# cvslog.sh |
| 5 |
– |
# |
| 6 |
– |
# Script to send daily cvslog e-mails. |
| 7 |
– |
# Written by Tim Bishop [tdb1@ukc.ac.uk] 26/01/2001 |
| 8 |
– |
# |
| 9 |
– |
# Copyright i-Scream, 2000 |
| 10 |
– |
# http://www.i-scream.org.uk |
| 11 |
– |
#--------------------------------------------------------- |
| 12 |
– |
|
| 3 |
|
## settings |
| 4 |
|
|
| 5 |
|
# e-mail addresses |
| 6 |
< |
TOADDR="commits@i-scream.org.uk" |
| 7 |
< |
FROMADDR="commits@i-scream.org.uk" |
| 6 |
> |
TOADDR="commits@i-scream.org" |
| 7 |
> |
FROMADDR="commits@i-scream.org" |
| 8 |
|
|
| 9 |
|
# cvs path |
| 10 |
|
CVS="/usr/bin/cvs" |
| 13 |
|
CVSROOT="/cvs/i-scream" |
| 14 |
|
|
| 15 |
|
# temporary checkout directory (checked out modules already) |
| 16 |
< |
CHECKOUTDIR="/home/sites/www.i-scream.org.uk/cvsscripttemp" |
| 16 |
> |
CHECKOUTDIR="/tmp/i-scream/cvstmp" |
| 17 |
|
|
| 18 |
|
# path to cvs2cl |
| 19 |
< |
CVS2CLPATH="/home/sites/www.i-scream.org.uk/bin/cvs2cl2.pl" |
| 19 |
> |
CVS2CLPATH="/usr/local/bin/cvs2cl" |
| 20 |
|
|
| 21 |
|
# command line args for cvs2cl |
| 32 |
– |
#CVS2CLARGS="-w -r -b -t -U ${CVSROOT}/CVSROOT/users -l \"-dyesterday<today\" -g \"-d${CVSROOT}\" -g \"-Q\"" |
| 22 |
|
CVS2CLARGS="--no-wrap --no-common-dir -w -r -t -S -U ${CVSROOT}/CVSROOT/users -l \"-dyesterday<today\" -g \"-d${CVSROOT}\" -g \"-Q\"" |
| 23 |
|
|
| 24 |
|
# cvs2cl command |
| 28 |
|
SUBJECT="i-scream daily commit logs - " |
| 29 |
|
|
| 30 |
|
# full cvs update script |
| 31 |
< |
FULLCVSUPDATE="/home/sites/www.i-scream.org.uk/bin/fullcvsupdate.sh" |
| 31 |
> |
FULLCVSUPDATE="/home/iscream/bin/fullcvsupdate.sh" |
| 32 |
|
|
| 33 |
|
# path to sendmail |
| 34 |
|
SENDMAIL="/usr/sbin/sendmail" |
| 35 |
|
|
| 36 |
|
# cvslog webpage for this day :) |
| 37 |
< |
DATE=`/bin/date --date="1 day ago" "+%Y/%m/%d"` |
| 38 |
< |
CVSLOGURL="http://www.i-scream.org.uk/cgi-bin/cvslog.cgi?period=date&date=${DATE}&module=" |
| 37 |
> |
DATE=`/bin/date -v-1d +%Y/%m/%d` |
| 38 |
> |
CVSLOGURL="http://www.i-scream.org/cgi-bin/cvslog.cgi?period=date&date=${DATE}&module=" |
| 39 |
|
CVSLOGLINE="This log is viewable online at ${CVSLOGURL}" |
| 40 |
|
|
| 41 |
|
## code |