From 4c0a5d148c668010d9ad0901546d55d9098d687a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Fern=C3=A1ndez-Sanguino?= Date: Sun, 30 Sep 2018 22:58:23 +0000 Subject: [PATCH] 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 --- common/epub/build-epubs.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.34.1