Changeset 1898
- Timestamp:
- 02/07/07 09:58:40 (1 year ago)
- Files:
-
- swish_website/build.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
swish_website/build.sh
r1897 r1898 3 3 # Rebuild the site, and if any files are written reindex 4 4 # This is expected to be run as a cron job 5 # 6 # build.sh $ROOT [-a] 7 # Optionally set SWISH_SITE=http://whatever to change the location of 8 # the site indexed (useful for local debugging) 9 5 10 6 11 if test ! -n "$1"; then … … 15 20 16 21 SVN="$ROOT/swish_website" 22 SWISH_SITE=${SWISH_SITE:=http://swish-e.org} 23 SPIDER_QUIET=${SPIDER_QUIET:=1} 24 25 export SPIDER_QUIET SWISH_SITE 17 26 18 27 … … 52 61 53 62 54 SWISH_SITE=${SWISH_SITE:=http://swish-e.org}55 SPIDER_QUIET=${SPIDER_QUIET:=1}56 57 export SPIDER_QUIET SWISH_SITE58 63 59 64 # Now build the website, if any -a passed or if "Updated to revision" is returned. … … 63 68 echo "updating site" 64 69 65 $SVN/bin/build --root $ROOT $@ \ 66 && swish-e \ 67 -c $SVN/etc/swish.config \ 68 -S prog \ 69 -f $ROOT/indexes/index.swish-e \ 70 -v 0 70 if $SVN/bin/build --root $ROOT $@; then 71 echo "rebuilding site index" 72 73 swish-e \ 74 -c $SVN/etc/swish.config \ 75 -S prog \ 76 -f $ROOT/indexes/index.swish-e \ 77 -v 0 || echo "Had problem runnning swish" 78 79 else 80 echo "Problem building site" 81 82 fi 83 71 84 fi 72 85
