Run in build dir
This commit is contained in:
parent
cd8d3b1b67
commit
9c28c6afca
9
run.sh
9
run.sh
@ -12,8 +12,15 @@ if test "$(ls -A /tex)"; then
|
|||||||
TARGET="*.tex"
|
TARGET="*.tex"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Build in build dir
|
||||||
|
BUILD=$(date | sha256sum | cut -f1 -d' ')
|
||||||
|
mkdir $BUILD
|
||||||
|
cd $BUILD
|
||||||
|
|
||||||
|
echo "$ECHOPREFIX Targetting $TARGET"
|
||||||
|
|
||||||
# Build the PDF
|
# Build the PDF
|
||||||
texi2pdf $TARGET
|
texi2pdf ../$TARGET
|
||||||
else
|
else
|
||||||
# Directory is empty
|
# Directory is empty
|
||||||
echo "=> Please mount your directory to /tex"
|
echo "=> Please mount your directory to /tex"
|
||||||
|
Loading…
Reference in New Issue
Block a user