reitzig / ltx2any

Yet another LaTeX build wrapper, with one or two nifty features
GNU General Public License v3.0
59 stars 4 forks source link

Support Mac platforms #52

Open akerbos opened 9 years ago

akerbos commented 9 years ago

Need to get rid of some binary GNU dependencies, provide a start script and test for "hidden" incompatibilities.

Since I don't have any Mac workstations, input and pull requests are appreciated.

reitzig commented 5 years ago

GNU dependencies were removed back then for #51; unclear if there's any work to do. Test on a Mac!

samcarter commented 3 months ago

ltx2any works mostly just fine on mac, the only hiccup is that the readlink version from mac doesn't know the -e option (see e.g. https://blog.game-changing.de/being-different-for-the-sake-of-being-different-subtle-differences-within-command-line-tools/ )

For my personal use, I replaced readlink with greadlink:

set -eu

script_path="$(greadlink -e "${BASH_SOURCE[0]}")"

ruby "$(dirname "${script_path}")/ltx2any.rb" "$@"

(no idea if there is a better solution)

tested with:

reitzig commented 2 months ago

Thanks, hope that helps future visitors!

Alternatives I can think of: