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.1 by tdb, Fri Mar 9 00:23:22 2001 UTC vs.
Revision 1.2 by tdb, Wed Jun 6 13:59:12 2001 UTC

# Line 12 | Line 12
12  
13   ## settings
14  
15 < # destination address
16 < ADDRESS="dev@i-scream.org.uk"
15 > # e-mail addresses
16 > TOADDR="dev@i-scream.org.uk"
17 > FROMADDR="tim@i-scream.org.uk"
18  
19   # cvs path
20 < CVS="/home/cut/tdb1/bin/cvs"
20 > CVS="/usr/bin/cvs"
21  
22   # cvs repository
23 < CVSROOT="/usr/local/proj/co600_10/cvs"
23 > CVSROOT="/cvs/i-scream"
24  
25   # temporary checkout directory (checked out modules already)
26 < CHECKOUTDIR="/home/cut/tdb1/cvsscripttemp"
26 > CHECKOUTDIR="/home/sites/www.i-scream.org.uk/cvsscripttemp"
27  
28   # path to cvs2cl
29 < CVS2CLPATH="/home/cut/tdb1/bin/cvs2cl"
29 > CVS2CLPATH="/home/sites/www.i-scream.org.uk/bin/cvs2cl.pl"
30  
31   # command line args for cvs2cl
32 < CVS2CLARGS="-w -r -b -t -U ${CVSROOT}/CVSROOT/users -l \"-dyesterday<today\" -g \"-d/usr/local/proj/co600_10/cvs\" -g \"-Q\""
32 > CVS2CLARGS="-w -r -b -t -U ${CVSROOT}/CVSROOT/users -l \"-dyesterday<today\" -g \"-d${CVSROOT}\" -g \"-Q\""
33  
34   # cvs2cl command
35   CVS2CL="${CVS2CLPATH} ${CVS2CLARGS}"
# Line 36 | Line 37 | CVS2CL="${CVS2CLPATH} ${CVS2CLARGS}"
37   # subject line
38   SUBJECT="i-scream daily commit logs - "
39  
40 + # full cvs update script
41 + FULLCVSUPDATE="/home/sites/www.i-scream.org.uk/bin/fullcvsupdate.sh"
42  
43 +
44   ## code
45  
46 < cd ${CHECKOUTDIR}
43 < ${CVS} -d ${CVSROOT} -Q update -d
46 > ${FULLCVSUPDATE}
47  
48 < MODULES="CVSROOT documentation experimental misc source web"
48 > MODULES=`ls ${CVSROOT}`
49  
50 < for MOD in ${MODULES}; do
50 > cd ${CHECKOUTDIR}
51  
52 <    ${CVS2CL} ${MOD}
52 > for MODULE in ${MODULES}; do
53 >
54 >    ${CVS2CL} ${MODULE}
55      if test -r "ChangeLog"; then \
56 <        cat ChangeLog | mailx -s "${SUBJECT}${MOD}" ${ADDRESS}; \
56 >        ( echo "To: ${TOADDR}"; echo "From: ${FROMADDR}"; \
57 >          echo "Subject: ${SUBJECT}${MODULE}"; cat ChangeLog; \
58 >          echo "." ) | sendmail ${TOADDR}; \
59          rm -f ChangeLog
60      fi;
61  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines