Admin/polyml/polyi
author wenzelm
Thu Dec 14 11:24:26 2017 +0100 (20 months ago)
changeset 67198 694f29a5433b
parent 63229 f951c624c1a1
child 67580 eb64467e8bcf
permissions -rwxr-xr-x
merged
wenzelm@33833
     1
#!/usr/bin/env bash
wenzelm@33833
     2
#
wenzelm@63229
     3
# Portable Poly/ML command-line tool
wenzelm@33833
     4
wenzelm@33833
     5
THIS="$(cd "$(dirname "$0")"; pwd)"
wenzelm@33833
     6
wenzelm@33833
     7
export LD_LIBRARY_PATH="$THIS:$LD_LIBRARY_PATH"
wenzelm@33833
     8
export DYLD_LIBRARY_PATH="$THIS:$DYLD_LIBRARY_PATH"
wenzelm@33833
     9
wenzelm@63229
    10
if type -p rlwrap > /dev/null
wenzelm@63229
    11
then
wenzelm@63229
    12
  exec rlwrap "$THIS/poly" "$@"
wenzelm@63229
    13
else
wenzelm@63229
    14
  exec "$THIS/poly" "$@"
wenzelm@63229
    15
fi