ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/fullcvsupdate.sh
Revision: 1.2
Committed: Sun Oct 21 17:54:20 2001 UTC (22 years, 7 months ago) by tdb
Content type: application/x-sh
Branch: MAIN
Changes since 1.1: +1 -0 lines
Log Message:
Rather dodgy command to run... but it will cleanup after the fullcvsupdate
has made a lovely mess in /tmp :)

File Contents

# Content
1 #!/bin/sh
2
3 # cvs path
4 CVS="/usr/bin/cvs"
5
6 # cvs root
7 CVSROOT="/cvs/i-scream"
8
9 # cvs checkout dir
10 CVSCODIR="/home/sites/www.i-scream.org.uk/cvsscripttemp"
11
12
13 # code
14
15 if [ "$1" = "" ]; then MODULES=`ls ${CVSROOT}`; else MODULES=$@; fi
16
17 cd ${CVSCODIR}
18
19 for MODULE in ${MODULES}; do
20
21 if ! test -d "${MODULE}"; then \
22 ${CVS} -d ${CVSROOT} -Q checkout ${MODULE}; \
23 fi
24
25 done
26
27 ${CVS} -d ${CVSROOT} -Q update -d ${MODULES};
28 cd /tmp && rm -Rf ${MODULES}