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}; |
28 |
tdb |
1.2 |
cd /tmp && rm -Rf ${MODULES} |