From b0cc99b5e2beb586e295b440b3a1ddcd3bfaafcc Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 12 Mar 2023 00:38:04 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- scripts/make-spreads.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/make-spreads.sh b/scripts/make-spreads.sh index 66d1309..5878129 100644 --- a/scripts/make-spreads.sh +++ b/scripts/make-spreads.sh @@ -18,12 +18,12 @@ shopt -s nullglob extglob # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Template structure: -# templates/ +# $TEMPLATE_DIR/ # spread.tex # imagepage.tex # textpage.tex # ... -# captions/ +# $CAPTION_DIR/ # .txt # image caption. # this is separated to decouple caption writing from the @@ -131,14 +131,14 @@ shopt -s nullglob extglob # # #---------------------------------------------------------------------- - # load config... + CONFIG=${CONFIG:=$(basename ${0%.*}).cfg} # prepend CFG_ to settings in config... # NOTE: this is done to prevent them overriding the environment... [ -e $CONFIG ] \ && eval $(cat "$CONFIG" \ - sed -e 's/^\(\s*\)\([A-Z_]\+=\)/\1CFG_\2/') + | sed -e 's/^\(\s*\)\([A-Z_]\+=\)/\1CFG_\2/') # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -