#
# Build all the ePub files for Project Aon in a single run
#
-# (c) 2011 Javier Fernandez-Sanguino <jfs@computer.org>
+# (c) 2011, 2018 Javier Fernandez-Sanguino <jfs@computer.org>
#
-# This script is provided with the same license as that one
-# used in the Aon Project
+# This script is provided with the same license as the one
+# used in the Project Aon.
set -e
CURDIR=`pwd`
-AONDIR="../../"
+[ -z "$AONDIR" ] && AONDIR="../../"
+[ -z "$LANGS" ] && LANGS="en es"
LOGDIR="$CURDIR/logs/"
[ ! -e "$LOGDIR" ] && mkdir $LOGDIR
-LANGS="en es"
-FONTDIR=fontfiles/
+FONTDIR="../fontfiles/"
if [ ! -e "${AONDIR}${FONTDIR}" ] ; then
echo "The font directory (${AONDIR}${FONTDIR}) does not exist."
echo "Please create it and copy the Souvenir font to it "
- echo "(or adjust the script to use an alternative directory)"
+ echo "(or adjust this script to use an alternative directory)"
exit 1
fi