New rsync target, and rsync after every branch.
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 15 Jan 2009 13:54:53 +0000 (13:54 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 15 Jan 2009 13:54:53 +0000 (13:54 +0000)
wwwtools/update-nls-www

index abdd402de789ed17271918558bd52cf56164625f..0540771dcdd367e5322e5a8b78e0eab69cf4c08c 100755 (executable)
@@ -9,7 +9,7 @@ date -u
 set -ex
 
 MYDIR=$(cd $(dirname $0) && pwd)
-WEBDIR=$MYDIR/../../htdocs
+WEBDIR=$MYDIR/../../htwork
 CVSDIR=$(cd $MYDIR/../../cvs && pwd)
 
 active_branches="current 8.3-branch 8.2-branch 8.1-branch 8.0-branch 7.4-branch"
@@ -24,8 +24,6 @@ test -e "$lock" && exit 77
 trap 'rm -f $tmp $lock' EXIT ERR SIGHUP SIGINT SIGPIPE SIGTERM
 touch "$lock"
 
-donesomething=false
-
 for branch in $active_branches; do
        tmp=`mktemp -t "$me"`
 
@@ -62,16 +60,8 @@ for branch in $active_branches; do
 
 #      $MYDIR/pg-make-conflicts $branch $MYDIR $WEBDIR
 
-       donesomething=true
+       $MYDIR/nls-status-page $WEBDIR > $WEBDIR/index.html
+       rsync -l -r --delete --delete-excluded --exclude='table-*.html' $WEBDIR/ ~/htdocs/
 done
 
 date
-
-if ! $donesomething; then
-       exit 77
-fi
-
-$MYDIR/nls-status-page $WEBDIR > $WEBDIR/status.html
-(cd $WEBDIR && ln -fs status.html index.html)
-
-rsync -l -r --delete --delete-excluded --exclude='table-*.html' $WEBDIR/ pgfoundry.org:/home/pgfoundry.org/groups/pgtranslation/htdocs/