Admin/polyml/polyi
author wenzelm
Fri, 09 Feb 2018 11:14:13 +0100
changeset 67580 eb64467e8bcf
parent 63229 f951c624c1a1
permissions -rwxr-xr-x
more robust access to shared libraries for poly executable: avoid global change of LD_LIBRARY_PATH (e.g. relevant for subprocesses);

#!/usr/bin/env bash
#
# Portable Poly/ML command-line tool

THIS="$(cd "$(dirname "$0")"; pwd)"

export DYLD_LIBRARY_PATH="$THIS:$DYLD_LIBRARY_PATH"

if type -p rlwrap > /dev/null
then
  exec rlwrap "$THIS/poly" "$@"
else
  exec "$THIS/poly" "$@"
fi