#!/bin/sh if [ "$1" = "" ] then echo "Please specify a manual version number (e.g., 1.0.0alpha2)." exit 1 else echo "Updating manual version $1." REL=$1 fi if [ "$2" = "commit" ] then COMMIT=true else COMMIT=false fi # build docbook cd trunk ./build.sh cd .. # copy to the manual version dir cp -r ./trunk/output/manual/ ./version/$REL/manual/ # commit? if [ $COMMIT = true ] then echo "Commit specified." svn add ./version/$REL/manual/* svn commit ./version/$REL --message="updating version $REL manual" else echo "Commit not specified." fi echo "Done."