ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/fullcvsupdate.sh
Revision: 1.1
Committed: Wed Jun 13 16:03:41 2001 UTC (22 years, 11 months ago) by tdb
Content type: application/x-sh
Branch: MAIN
Log Message:
This script performs a full cvs update on the given modules, and will even check
them out if necessary. This whole process is required because of old certain cvs
commands that still required a checked out copy (namely log).

File Contents

# User Rev Content
1 tdb 1.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};