#!/bin/sh ## ## $Id$ ## DIRNAME=`dirname $0` PATH="$PATH:/usr/local/bin" export PATH BASEDIR=`cd "$DIRNAME/.."; pwd` TMPDIR="$BASEDIR/tmp" rm -rf "$TMPDIR" mkdir "$TMPDIR" dosync() { rsync -q -p -r $* > /dev/null 2>&1 } # Make sure we have no evil locks (cd $BASEDIR; svn cleanup) # Make sure we have the latest content (cd $BASEDIR; svn up --quiet) # Install the underlay/boilerplate dosync --exclude '.svn' "$BASEDIR/docs/" "$TMPDIR/" # Install the cwiki exported content dosync "/www/confluence-exports/GMOxSITE/" "$TMPDIR/" # Update the live site sync dir dosync "$TMPDIR/" "/www/geronimo.apache.org/"