Changeset 1898

Show
Ignore:
Timestamp:
02/07/07 09:58:40 (1 year ago)
Author:
moseley
Message:

Add a bit more verbose output so can see, maybe, why the index isn't getting updated.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • swish_website/build.sh

    r1897 r1898  
    33# Rebuild the site, and if any files are written reindex 
    44# 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 
    510 
    611if test ! -n "$1"; then 
     
    1520 
    1621SVN="$ROOT/swish_website" 
     22SWISH_SITE=${SWISH_SITE:=http://swish-e.org} 
     23SPIDER_QUIET=${SPIDER_QUIET:=1} 
     24 
     25export SPIDER_QUIET SWISH_SITE 
    1726 
    1827 
     
    5261 
    5362 
    54 SWISH_SITE=${SWISH_SITE:=http://swish-e.org} 
    55 SPIDER_QUIET=${SPIDER_QUIET:=1} 
    56  
    57 export SPIDER_QUIET SWISH_SITE 
    5863 
    5964# Now build the website, if any -a passed or if "Updated to revision" is returned. 
     
    6368    echo "updating site" 
    6469 
    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 
    7184fi 
    7285