From: Javier Fernández-Sanguino Date: Sun, 30 Sep 2018 22:58:23 +0000 (+0000) Subject: Do not override AONDIR or LANGS if it is defined in the environment (behave just... X-Git-Tag: 29tsoc-20200103~88 X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=commitdiff_plain;h=4c0a5d148c668010d9ad0901546d55d9098d687a Do not override AONDIR or LANGS if it is defined in the environment (behave just like build-xhtml.sh) git-svn-id: https://projectaon.org/data/trunk@2744 f6f3e2d7-ff33-0410-aaf5-b4bee2cdac11 --- diff --git a/common/epub/build-epubs.sh b/common/epub/build-epubs.sh index 7d79d94..1b7e406 100644 --- a/common/epub/build-epubs.sh +++ b/common/epub/build-epubs.sh @@ -2,18 +2,18 @@ # # 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/" if [ ! -e "${AONDIR}${FONTDIR}" ] ; then