summaryrefslogtreecommitdiffstats
path: root/.scripts/compiler
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-11-03 20:59:02 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-11-03 20:59:02 -0400
commitafe1702286a13178f2c7ac2e962d80c76c6ff5fa (patch)
treeaf183a1e6b38f67740141b22c26145dc4f489a62 /.scripts/compiler
parentf6ea9cb253b946ed3bc264e8f89f8e7b9fdf03b8 (diff)
downloadeibhear-afe1702286a13178f2c7ac2e962d80c76c6ff5fa.tar.gz
eibhear-afe1702286a13178f2c7ac2e962d80c76c6ff5fa.tar.zst
eibhear-afe1702286a13178f2c7ac2e962d80c76c6ff5fa.zip
compiler fix
Diffstat (limited to '.scripts/compiler')
-rwxr-xr-x.scripts/compiler7
1 files changed, 2 insertions, 5 deletions
diff --git a/.scripts/compiler b/.scripts/compiler
index 1d74152..53d6768 100755
--- a/.scripts/compiler
+++ b/.scripts/compiler
@@ -36,12 +36,9 @@ shebangtest() {
esac
}
-# If there is a global $REFBIB variable/file for `refer`, use it.
-[ -f "$REFBIB" ] && groffbib="-p $REFBIB"
-
case "$file" in
- *\.ms) refer -PS -e $groffbib "$file" | groff -kejpt -ms -T pdf > "$base".pdf ;;
- *\.rmd) echo "require(rmarkdown); render('$file')" | R --vanilla && mv "$base".pdf "$dir"/pdfs;;
+ *\.ms) refer -PS -e "$file" | groff -me -ms -kejpt -T pdf > "$base".pdf ;;
+ *\.rmd) echo "require(rmarkdown); render('$file')" | R --vanilla ;;
*\.tex) textype "$file" ;;
*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
*config.h) make && sudo make install ;;