ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/cvslog.sh
Revision: 1.1
Committed: Fri Mar 9 00:23:22 2001 UTC (23 years, 2 months ago) by tdb
Content type: application/x-sh
Branch: MAIN
CVS Tags: PROJECT_COMPLETION
Log Message:
Various shell scripts used around the project.

File Contents

# Content
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
13 ## settings
14
15 # destination address
16 ADDRESS="dev@i-scream.org.uk"
17
18 # cvs path
19 CVS="/home/cut/tdb1/bin/cvs"
20
21 # cvs repository
22 CVSROOT="/usr/local/proj/co600_10/cvs"
23
24 # temporary checkout directory (checked out modules already)
25 CHECKOUTDIR="/home/cut/tdb1/cvsscripttemp"
26
27 # path to cvs2cl
28 CVS2CLPATH="/home/cut/tdb1/bin/cvs2cl"
29
30 # command line args for cvs2cl
31 CVS2CLARGS="-w -r -b -t -U ${CVSROOT}/CVSROOT/users -l \"-dyesterday<today\" -g \"-d/usr/local/proj/co600_10/cvs\" -g \"-Q\""
32
33 # cvs2cl command
34 CVS2CL="${CVS2CLPATH} ${CVS2CLARGS}"
35
36 # subject line
37 SUBJECT="i-scream daily commit logs - "
38
39
40 ## code
41
42 cd ${CHECKOUTDIR}
43 ${CVS} -d ${CVSROOT} -Q update -d
44
45 MODULES="CVSROOT documentation experimental misc source web"
46
47 for MOD in ${MODULES}; do
48
49 ${CVS2CL} ${MOD}
50 if test -r "ChangeLog"; then \
51 cat ChangeLog | mailx -s "${SUBJECT}${MOD}" ${ADDRESS}; \
52 rm -f ChangeLog
53 fi;
54
55 done