X-Git-Url: http://git.projectaon.org/?a=blobdiff_plain;f=common%2Fepub%2Fbuild-epubs.sh;h=1b7e406963bb256ea676026f8ff60f4503865c4d;hb=0cf6555c4e596a4b07eccb406d8dd3d2d8e116e0;hp=075da1bfae4a45d5753ae81d72b1323e2106095a;hpb=f4bdee5083ca9a72713637e1e979aa183e06faea;p=project-aon.git diff --git a/common/epub/build-epubs.sh b/common/epub/build-epubs.sh index 075da1b..1b7e406 100644 --- a/common/epub/build-epubs.sh +++ b/common/epub/build-epubs.sh @@ -2,24 +2,24 @@ # # Build all the ePub files for Project Aon in a single run # -# (c) 2011 Javier Fernandez-Sanguino +# (c) 2011, 2018 Javier Fernandez-Sanguino # -# 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