| Revision: | 1.1 |
| Committed: | Wed Jun 13 16:03:41 2001 UTC (24 years, 6 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). |
| # | 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}; |