ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/fullcvsupdate.sh
Revision: 1.3
Committed: Sun Aug 1 10:39:52 2004 UTC (20 years, 3 months ago) by tdb
Content type: application/x-sh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +20 -16 lines
Log Message:
Catch a lot of old URL's and update them. Also remove a couple of old files
that aren't used.

File Contents

# User Rev Content
1 tdb 1.1 #!/bin/sh
2 tdb 1.3
3 tdb 1.1 # cvs path
4     CVS="/usr/bin/cvs"
5 tdb 1.3
6 tdb 1.1 # cvs root
7     CVSROOT="/cvs/i-scream"
8 tdb 1.3
9 tdb 1.1 # cvs checkout dir
10 tdb 1.3 CVSCODIR="/tmp/i-scream/cvstmp"
11    
12 tdb 1.1 if [ "$1" = "" ]; then MODULES=`ls ${CVSROOT}`; else MODULES=$@; fi
13    
14 tdb 1.3 if [ ! -d ${CVSCODIR} ]; then
15     mkdir -p ${CVSCODIR}
16     chmod 700 ${CVSCODIR}
17     fi
18    
19 tdb 1.1 cd ${CVSCODIR}
20 tdb 1.3
21 tdb 1.1 for MODULE in ${MODULES}; do
22 tdb 1.3
23     if [ ! -d ${MODULE} ]; then
24     ${CVS} -d ${CVSROOT} -Q checkout ${MODULE}
25     else
26     ${CVS} -d ${CVSROOT} -Q update -dP ${MODULE}
27 tdb 1.1 fi
28 tdb 1.3
29 tdb 1.1 done
30 tdb 1.3
31     #${CVS} -d ${CVSROOT} -Q update -d ${MODULES}
32     #cd /tmp && rm -Rf ${MODULES}