From 9c28c6afca9e8a13fbf973f27b285fefa745d583 Mon Sep 17 00:00:00 2001 From: maride Date: Fri, 4 May 2018 19:50:17 +0200 Subject: [PATCH] Run in build dir --- run.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index f29238f..27429c5 100755 --- a/run.sh +++ b/run.sh @@ -12,8 +12,15 @@ if test "$(ls -A /tex)"; then TARGET="*.tex" fi + # Build in build dir + BUILD=$(date | sha256sum | cut -f1 -d' ') + mkdir $BUILD + cd $BUILD + + echo "$ECHOPREFIX Targetting $TARGET" + # Build the PDF - texi2pdf $TARGET + texi2pdf ../$TARGET else # Directory is empty echo "=> Please mount your directory to /tex"