#! /bin/sh

RELEASEDIR="/root/Work/release/vbox"

   # Check the host. Theres no need for others to create releases! #

if [ "${HOSTNAME}" != "abadonna.franken.de" ] || [ "${USER}" != "root" ]
then
   echo
   echo "This script is only for the author to create a complete release!"
   echo

   exit
fi

   # Check the source state. So we can't forgett to update the version #
   # (I hope)!                                                         #

echo
echo "Now we build a complete release for version ${VERSION}. Do not forgett to"
echo "update the version number and to create a tag for this release!"
echo
echo -n "[Hit ENTER to continue or CTRL-C to stop] "
read DUMMY
echo

   # Change to the global release dir! #

cd "${RELEASEDIR}"

if [ "`pwd`" != "${RELEASEDIR}" ]
then
   echo "Can't change to the global release directory '${RELEASEDIR}'."
   echo

   exit
fi

##
## Tools kopieren...
##

mkdir tools

cp -rv ../xvboxled ./tools
cp -rv ../mam ./tools

echo

##
## Anleitungen erzeugen...
##

cd "${RELEASEDIR}/doc/de"

sgml2html -l -img vbox.sgml
sgml2txt -l vbox.sgml










echo
echo "Fertig!"
