aboutsummaryrefslogtreecommitdiff
path: root/.scripts/compile
diff options
context:
space:
mode:
authorMarvin Borner2022-05-31 14:17:19 +0200
committerMarvin Borner2022-05-31 14:17:19 +0200
commitb8be82d9113dd0fec9021aa573039cc64dbd849a (patch)
tree0694d21e5ba03e843dc6f03d1c5b1ed033123875 /.scripts/compile
parent272cc6e941d798d7270fcf74a98f592ef06e14ac (diff)
Clean
Diffstat (limited to '.scripts/compile')
-rwxr-xr-x.scripts/compile28
1 files changed, 0 insertions, 28 deletions
diff --git a/.scripts/compile b/.scripts/compile
deleted file mode 100755
index 95f70c8..0000000
--- a/.scripts/compile
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env sh
-
-file=$(readlink -f "$1")
-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 ;;
-#md) lowdown -d nointem -e super "$file" -Tms | groff -t -mspdf -k -Kutf8 -T pdf >"$base".pdf ;;
-#md) pandoc "$file" --pdf-engine=xelatex -V geometry:a4paper -V geometry:margin=2cm -V toc-title='Table of contents' -o "$base.pdf" ;; # Xelatex is slow af
-md) pandoc "$file" -V geometry:a4paper -V geometry:margin=2cm -V toc-title='Table of contents' -o "$base.pdf" ;;
-[rR]md) Rscript -e "rmarkdown::render('$file', quiet=TRUE)" ;;
-tex) pdflatex --output-directory "$dir" "$base" ;;
-sent) setsid -f sent "$file" 2>/dev/null ;;
-h) sudo make install ;;
-c) cc "$file" -o "$base" && "$base" ;;
-py) python "$file" ;;
-rs) cargo build ;;
-go) go run "$file" ;;
-*) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;;
-esac