Improve compile logs
This commit is contained in:
@@ -20,16 +20,31 @@ if [ -n "$INSTALL_HELPERS" ]; then
|
||||
mkdir ~/projects/ || true
|
||||
cd ~/projects/
|
||||
git clone https://git.janishutz.com/janishutz/latex || true
|
||||
echo "Downloaded helpers, returning to $CURR_DIR"
|
||||
echo "
|
||||
Downloaded helpers, returning to $CURR_DIR
|
||||
"
|
||||
cd "$CURR_DIR"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Setting workdir from current dir, which is $(pwd)"
|
||||
echo "
|
||||
Setting workdir from current dir, which is $(pwd)
|
||||
"
|
||||
if [ -n "$WORKDIR" ]; then
|
||||
cd "$WORKDIR"
|
||||
fi
|
||||
|
||||
echo "latexmk with extra args $EXTRA_ARGS"
|
||||
echo "
|
||||
Compiling document using latexmk with extra arguments: $EXTRA_ARGS
|
||||
"
|
||||
|
||||
latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode -shell-escape $EXTRA_ARGS
|
||||
latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode -shell-escape $EXTRA_ARGS > /tmp/log.txt
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
cat /tmp/log.txt
|
||||
echo "
|
||||
==> Compile has failed. See log above
|
||||
"
|
||||
else
|
||||
echo "Compile successful, log omitted"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user