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} |