ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/cvslog.sh
Revision: 1.11
Committed: Sun Aug 1 10:39:52 2004 UTC (19 years, 9 months ago) by tdb
Content type: application/x-sh
Branch: MAIN
Changes since 1.10: +7 -18 lines
Log Message:
Catch a lot of old URL's and update them. Also remove a couple of old files
that aren't used.

File Contents

# User Rev Content
1 tdb 1.1 #!/bin/sh
2    
3     ## settings
4    
5 tdb 1.2 # e-mail addresses
6 tdb 1.11 TOADDR="commits@i-scream.org"
7     FROMADDR="commits@i-scream.org"
8 tdb 1.1
9     # cvs path
10 tdb 1.2 CVS="/usr/bin/cvs"
11 tdb 1.1
12     # cvs repository
13 tdb 1.2 CVSROOT="/cvs/i-scream"
14 tdb 1.1
15     # temporary checkout directory (checked out modules already)
16 tdb 1.11 CHECKOUTDIR="/tmp/i-scream/cvstmp"
17 tdb 1.1
18     # path to cvs2cl
19 tdb 1.11 CVS2CLPATH="/usr/local/bin/cvs2cl"
20 tdb 1.1
21     # command line args for cvs2cl
22 tdb 1.10 CVS2CLARGS="--no-wrap --no-common-dir -w -r -t -S -U ${CVSROOT}/CVSROOT/users -l \"-dyesterday<today\" -g \"-d${CVSROOT}\" -g \"-Q\""
23 tdb 1.1
24     # cvs2cl command
25     CVS2CL="${CVS2CLPATH} ${CVS2CLARGS}"
26    
27     # subject line
28     SUBJECT="i-scream daily commit logs - "
29    
30 tdb 1.2 # full cvs update script
31 tdb 1.11 FULLCVSUPDATE="/home/iscream/bin/fullcvsupdate.sh"
32 tdb 1.2
33 tdb 1.3 # path to sendmail
34     SENDMAIL="/usr/sbin/sendmail"
35    
36 tdb 1.5 # cvslog webpage for this day :)
37 tdb 1.11 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 tdb 1.6 CVSLOGLINE="This log is viewable online at ${CVSLOGURL}"
40 tdb 1.1
41     ## code
42    
43 tdb 1.8 ${FULLCVSUPDATE} >/dev/null 2>&1
44 tdb 1.2
45     MODULES=`ls ${CVSROOT}`
46    
47 tdb 1.1 cd ${CHECKOUTDIR}
48    
49 tdb 1.2 for MODULE in ${MODULES}; do
50 tdb 1.1
51 tdb 1.2 ${CVS2CL} ${MODULE}
52 tdb 1.1 if test -r "ChangeLog"; then \
53 tdb 1.2 ( echo "To: ${TOADDR}"; echo "From: ${FROMADDR}"; \
54 tdb 1.6 echo "Subject: ${SUBJECT}${MODULE}"; echo ${CVSLOGLINE}${MODULE}; \
55     echo; echo; cat ChangeLog; \
56 tdb 1.3 echo "." ) | ${SENDMAIL} ${TOADDR}; \
57 tdb 1.1 rm -f ChangeLog
58     fi;
59    
60     done