From 5f595e460de123744702ee94c5f90fff0a87faed Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 3 Apr 2018 13:34:01 +0100 Subject: [PATCH] Correctly resolve filter paths --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 8a9b703..13f37ea 100755 --- a/build.sh +++ b/build.sh @@ -8,7 +8,7 @@ ADDITIONAL_ARGS=${@:2} INPUT_FILE=`realpath $1` INPUT_DIR=`dirname $INPUT_FILE` METADATA_FILE="$INPUT_DIR/metadata.yaml" -OUTPUT_FILE=output.pdf +OUTPUT_FILE=`realpath output.pdf` INPUT_FILES="$INPUT_FILE" @@ -17,10 +17,10 @@ then INPUT_FILES="$INPUT_FILES $METADATA_FILE" fi -PANDOC_ARGS="$INPUT_FILES --lua-filter=variables.lua --template $SCRIPTPATH/main.tex -o $OUTPUT_FILE $ADDITIONAL_ARGS" +PANDOC_ARGS="$INPUT_FILES --lua-filter=$SCRIPTPATH/variables.lua --template $SCRIPTPATH/main.tex -o $OUTPUT_FILE $ADDITIONAL_ARGS" echo "> Building document..." pandoc $PANDOC_ARGS echo "> Running second pass..." -pandoc --lua-filter=word-count.lua $PANDOC_ARGS +pandoc --lua-filter=$SCRIPTPATH/word-count.lua $PANDOC_ARGS