Run in build dir

This commit is contained in:
maride 2018-05-04 19:50:17 +02:00
parent cd8d3b1b67
commit 9c28c6afca

9
run.sh
View File

@ -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"