ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/cvslog.sh
(Generate patch)

Comparing misc/scripts/shell/cvslog.sh (file contents):
Revision 1.2 by tdb, Wed Jun 6 13:59:12 2001 UTC vs.
Revision 1.7 by tdb, Mon Feb 4 00:43:52 2002 UTC

# Line 13 | Line 13
13   ## settings
14  
15   # e-mail addresses
16 < TOADDR="dev@i-scream.org.uk"
17 < FROMADDR="tim@i-scream.org.uk"
16 > TOADDR="commits@i-scream.org.uk"
17 > FROMADDR="commits@i-scream.org.uk"
18  
19   # cvs path
20   CVS="/usr/bin/cvs"
# Line 26 | Line 26 | CVSROOT="/cvs/i-scream"
26   CHECKOUTDIR="/home/sites/www.i-scream.org.uk/cvsscripttemp"
27  
28   # path to cvs2cl
29 < CVS2CLPATH="/home/sites/www.i-scream.org.uk/bin/cvs2cl.pl"
29 > CVS2CLPATH="/home/sites/www.i-scream.org.uk/bin/cvs2cl2.pl"
30  
31   # command line args for cvs2cl
32 < CVS2CLARGS="-w -r -b -t -U ${CVSROOT}/CVSROOT/users -l \"-dyesterday<today\" -g \"-d${CVSROOT}\" -g \"-Q\""
32 > #CVS2CLARGS="-w -r -b -t -U ${CVSROOT}/CVSROOT/users -l \"-dyesterday<today\" -g \"-d${CVSROOT}\" -g \"-Q\""
33 > CVS2CLARGS="-w -r -t -U ${CVSROOT}/CVSROOT/users -l \"-dyesterday<today\" -g \"-d${CVSROOT}\" -g \"-Q\""
34  
35   # cvs2cl command
36   CVS2CL="${CVS2CLPATH} ${CVS2CLARGS}"
# Line 40 | Line 41 | SUBJECT="i-scream daily commit logs - "
41   # full cvs update script
42   FULLCVSUPDATE="/home/sites/www.i-scream.org.uk/bin/fullcvsupdate.sh"
43  
44 + # path to sendmail
45 + SENDMAIL="/usr/sbin/sendmail"
46  
47 + # cvslog webpage for this day :)
48 + DATE=`/bin/date --date="1 day ago" "+%Y/%m/%d"`
49 + CVSLOGURL="http://www.i-scream.org.uk/cgi-bin/cvslog.cgi?period=date&date=${DATE}&module="
50 + CVSLOGLINE="This log is viewable online at ${CVSLOGURL}"
51 +
52   ## code
53  
54   ${FULLCVSUPDATE}
# Line 54 | Line 62 | for MODULE in ${MODULES}; do
62      ${CVS2CL} ${MODULE}
63      if test -r "ChangeLog"; then \
64          ( echo "To: ${TOADDR}"; echo "From: ${FROMADDR}"; \
65 <          echo "Subject: ${SUBJECT}${MODULE}"; cat ChangeLog; \
66 <          echo "." ) | sendmail ${TOADDR}; \
65 >          echo "Subject: ${SUBJECT}${MODULE}"; echo ${CVSLOGLINE}${MODULE}; \
66 >          echo; echo; cat ChangeLog; \
67 >          echo "." ) | ${SENDMAIL} ${TOADDR}; \
68          rm -f ChangeLog
69      fi;
70  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines