diff --git a/songbook/build.py b/songbook/build.py index 219fd078..5a7104b9 100644 --- a/songbook/build.py +++ b/songbook/build.py @@ -173,7 +173,8 @@ def buildsongbook(sb, basename, library): os.environ['TEXMFHOME'] = MOD_DIR + '/../' # First pdflatex pass - call(["pdflatex", "--shell-escape", texFile]) + if call(["pdflatex", "--shell-escape", texFile]): + sys.exit(1) # Make index sxdFiles = glob.glob("%s_*.sxd" % basename) @@ -185,4 +186,5 @@ def buildsongbook(sb, basename, library): indexFile.close() # Second pdflatex pass - call(["pdflatex", "--shell-escape", texFile]) + if call(["pdflatex", "--shell-escape", texFile]): + sys.exit(1)