Files
fsfe-website/tools/build.sh
jonas c65f8de7db Added text when finishing a build.
svn path=/trunk/; revision=3758
2004-02-27 17:14:48 +00:00

26 lines
560 B
Bash

#! /bin/bash
#
# This is a simple wrapper that will build the web pages in two steps.
# First, it will call build.pl with options to send the output to a
# temporary directory. After that is done, it will move the contents of
# that directory over the normal root.
#
SOURCE=/home/www/fsfe
DEST=/home/www/html
TMP=/home/www/tmp.$$
cd $SOURCE
tools/build.pl -q -o $TMP -i .
if test $? -ne 0; then
echo "Build not complete. Aborting."
exit 1
fi
cd $TMP
/usr/local/bin/symlinks
mv $DEST ${DEST}.old
mv $TMP $DEST
rm -rf ${DEST}.old
echo "Build complete."