Open akerbos opened 9 years ago
GNU dependencies were removed back then for #51; unclear if there's any work to do. Test on a Mac!
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:
Thanks, hope that helps future visitors!
Alternatives I can think of:
ruby /your/path/to/ltx2any.rb "${@}"
.#!/usr/bin/env ruby
to ltx2any.rb
and symlink it directly, avoiding the intermediate shell script.brew install coreutils
😉
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.