Do not override AONDIR or LANGS if it is defined in the environment (behave just...
authorJavier Fernández-Sanguino <javier.fernandez-sanguino@projectaon.org>
Sun, 30 Sep 2018 22:58:23 +0000 (22:58 +0000)
committerJavier Fernández-Sanguino <javier.fernandez-sanguino@projectaon.org>
Sun, 30 Sep 2018 22:58:23 +0000 (22:58 +0000)
git-svn-id: https://projectaon.org/data/trunk@2744 f6f3e2d7-ff33-0410-aaf5-b4bee2cdac11

common/epub/build-epubs.sh

index 7d79d94..1b7e406 100644 (file)
@@ -2,18 +2,18 @@
 #
 # 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/"
 
 if [ ! -e "${AONDIR}${FONTDIR}" ] ; then