aboutsummaryrefslogtreecommitdiff
path: root/zeitung/run
diff options
context:
space:
mode:
Diffstat (limited to 'zeitung/run')
-rwxr-xr-xzeitung/run4
1 files changed, 4 insertions, 0 deletions
diff --git a/zeitung/run b/zeitung/run
index 3e0098b..ceb28ad 100755
--- a/zeitung/run
+++ b/zeitung/run
@@ -1,5 +1,9 @@
#!/usr/bin/env sh
+if [ "$1" = "clean" ]; then
+ rm -rf build/
+fi
+
mkdir -p build/ &&
latexmk -shell-escape -output-directory=build/ -xelatex &&
zathura build/main.pdf