Skip to content

Commit

Permalink
Update compiler for OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
romariorobby committed Aug 7, 2021
1 parent 18785ba commit 43992fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dot_local/bin/executable_compiler
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@
#
# Note that .tex files which you wish to compile with XeLaTeX should have the
# string "xelatex" somewhere in a comment/command in the first 5 lines.

file=$(readlink -f "$1")
case "$OSTYPE" in
linux*) file=$(readlink -f "$1") ;;
darwin*) [ -x "$(command -v "greadlink")" ] || brew instal coreutils
file=$(greadlink -f "$1")
;;
esac
dir=${file%/*}
base="${file%.*}"
ext="${file##*.}"
Expand Down

0 comments on commit 43992fe

Please sign in to comment.