ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/websitecvsup.sh
Revision: 1.1
Committed: Sat Jun 30 17:48:40 2001 UTC (23 years, 2 months ago) by tdb
Content type: application/x-sh
Branch: MAIN
Log Message:
Script to update the website using cvsup. If a file named STOP.UPDATES is
created in the root of the website the update will be skipped. This is
handy if you want to change a file for live testing without committing it.

File Contents

# User Rev Content
1 tdb 1.1 #!/bin/sh
2    
3     #
4     # i-scream website updater (using cvsup)
5     # this should usually be run from a regular crontab
6     #
7     # written by tdb1 30/06/2001
8     #
9    
10     CVSUP="/usr/bin/cvsup"
11     CVSUPSWITCHES="-Z -L 0 -g -1"
12     CVSUPSUPFILE="/home/sites/www.i-scream.org.uk/cvsup/supfile"
13    
14     CVSUPCMD="${CVSUP} ${CVSUPSWITCHES} ${CVSUPSUPFILE}"
15    
16     STOPFILE="/home/sites/www.i-scream.org.uk/web/STOP.UPDATES"
17    
18     if test -r "${STOPFILE}"; then \
19     echo "update blocked by ${STOPFILE}"; \
20     else \
21     ${CVSUPCMD}; \
22     fi
23