Admin/polyml/bin/polyml
author haftmann
Mon, 06 Jun 2005 14:12:07 +0200
changeset 16301 f9f2e1643593
parent 11082 9a7cdfaa7ecb
permissions -rwxr-xr-x
migrated scripts to new webiste
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11082
9a7cdfaa7ecb improved;
wenzelm
parents: 11074
diff changeset
     1
#!/bin/sh
11073
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
     2
#
11082
9a7cdfaa7ecb improved;
wenzelm
parents: 11074
diff changeset
     3
# platform independent Poly/ML wrapper script
11073
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
     4
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
     5
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
     6
## self references
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
     7
11082
9a7cdfaa7ecb improved;
wenzelm
parents: 11074
diff changeset
     8
PRG="`basename "$0"`"
9a7cdfaa7ecb improved;
wenzelm
parents: 11074
diff changeset
     9
11073
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
    10
if [ -h "$0" ]; then
11082
9a7cdfaa7ecb improved;
wenzelm
parents: 11074
diff changeset
    11
  THIS="`cd "\`dirname "$0"\`"; cd "\`dirname "\\\`ls -l "$PRG" | sed -e 's/^.* -> //'\\\`"\`"; pwd`"
11073
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
    12
else
11074
100637226ff5 improved;
wenzelm
parents: 11073
diff changeset
    13
  THIS="`cd "\`dirname "$0"\`"; pwd`"
11073
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
    14
fi
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
    15
11074
100637226ff5 improved;
wenzelm
parents: 11073
diff changeset
    16
SUPER="`cd "$THIS/.."; pwd`"
11073
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
    17
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
    18
11074
100637226ff5 improved;
wenzelm
parents: 11073
diff changeset
    19
## run poly
11073
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
    20
e45b136716f5 polyml multiplatform setup;
wenzelm
parents:
diff changeset
    21
PLATFORM=`"$THIS/polyml-platform"`
11074
100637226ff5 improved;
wenzelm
parents: 11073
diff changeset
    22
exec "$SUPER/$PLATFORM/poly" $*