bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-03-12 00:38:04 +03:00
parent d6b026cd90
commit b0cc99b5e2

View File

@ -18,12 +18,12 @@ shopt -s nullglob extglob
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# #
# Template structure: # Template structure:
# templates/ # $TEMPLATE_DIR/
# spread.tex # spread.tex
# imagepage.tex # imagepage.tex
# textpage.tex # textpage.tex
# ... # ...
# captions/ # $CAPTION_DIR/
# <image>.txt # <image>.txt
# image caption. # image caption.
# this is separated to decouple caption writing from the # this is separated to decouple caption writing from the
@ -131,14 +131,14 @@ shopt -s nullglob extglob
# #
# #
#---------------------------------------------------------------------- #----------------------------------------------------------------------
# load config... # load config...
CONFIG=${CONFIG:=$(basename ${0%.*}).cfg} CONFIG=${CONFIG:=$(basename ${0%.*}).cfg}
# prepend CFG_ to settings in config... # prepend CFG_ to settings in config...
# NOTE: this is done to prevent them overriding the environment... # NOTE: this is done to prevent them overriding the environment...
[ -e $CONFIG ] \ [ -e $CONFIG ] \
&& eval $(cat "$CONFIG" \ && eval $(cat "$CONFIG" \
sed -e 's/^\(\s*\)\([A-Z_]\+=\)/\1CFG_\2/') | sed -e 's/^\(\s*\)\([A-Z_]\+=\)/\1CFG_\2/')
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -