diff --git a/build_tools/latex.sh b/build_tools/latex.sh index ee2a23c..0854d4d 100755 --- a/build_tools/latex.sh +++ b/build_tools/latex.sh @@ -23,7 +23,12 @@ SOURCE=build/latex/resume_$TARGET_LOCALE echo "Source=$SOURCE" -wget $SERVER_URL/latex-resume --header="Accept-Language: $TARGET_LOCALE" -O $SOURCE.tex +if [ -n $OPTS ] +then + EXTRA_URL="?$OPTS" +fi + +wget $SERVER_URL/latex-resume$EXTRA_URL --header="Accept-Language: $TARGET_LOCALE" -O $SOURCE.tex pdflatex --output-directory=build/latex -halt-on-error -shell-escape $SOURCE.tex [ ! -d ./.latex_cache ] && mkdir ./.latex_cache