aboutsummaryrefslogtreecommitdiff
path: root/.scripts/compile
diff options
context:
space:
mode:
authorMarvin Borner2020-07-05 15:53:23 +0200
committerMarvin Borner2020-07-05 15:53:23 +0200
commit888dd53bdba27f799d401d36b34e4e41d7c468fc (patch)
treea77c350d6444df08e1863da14684f17641c0cb62 /.scripts/compile
parenta738067f158938d9db8ef4e9be71804a2a6ef7c2 (diff)
Some changes
Diffstat (limited to '.scripts/compile')
-rwxr-xr-x.scripts/compile5
1 files changed, 5 insertions, 0 deletions
diff --git a/.scripts/compile b/.scripts/compile
index ce60741..38295e2 100755
--- a/.scripts/compile
+++ b/.scripts/compile
@@ -5,6 +5,11 @@ dir=${file%/*}
base="${file%.*}"
ext="${file##*.}"
+if [ -f "$dir/run" ]; then
+ echo "Using run file"
+ exec "$dir/run"
+fi
+
case "$ext" in
ms) preconv "$file" | refer -PS -e | groff -me -ms -kept -T pdf >"$base".pdf ;;
[0-9]) preconv "$file" | refer -PS -e | groff -mandoc -T pdf >"$base".pdf ;;