lib/scripts/polyml-version
author wenzelm
Wed, 26 Jul 2006 00:44:44 +0200
changeset 20207 4c57e850e8d5
parent 17419 16df5a5eef68
child 20748 4bcf492c6c9d
permissions -rwxr-xr-x
added Pure/subgoal.ML;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16996
32afaa947f6e determine Poly/ML runtime system version
wenzelm
parents:
diff changeset
     1
#!/usr/bin/env bash
32afaa947f6e determine Poly/ML runtime system version
wenzelm
parents:
diff changeset
     2
#
32afaa947f6e determine Poly/ML runtime system version
wenzelm
parents:
diff changeset
     3
# $Id$
32afaa947f6e determine Poly/ML runtime system version
wenzelm
parents:
diff changeset
     4
#
32afaa947f6e determine Poly/ML runtime system version
wenzelm
parents:
diff changeset
     5
# polyml-version --- determine Poly/ML runtime system version
32afaa947f6e determine Poly/ML runtime system version
wenzelm
parents:
diff changeset
     6
32afaa947f6e determine Poly/ML runtime system version
wenzelm
parents:
diff changeset
     7
echo -n polyml
32afaa947f6e determine Poly/ML runtime system version
wenzelm
parents:
diff changeset
     8
32afaa947f6e determine Poly/ML runtime system version
wenzelm
parents:
diff changeset
     9
if [ -x "$ML_HOME/poly" ]; then
17419
16df5a5eef68 poly -doDisplay;
wenzelm
parents: 16996
diff changeset
    10
  "$ML_HOME/poly" -noDisplay -r /dev/null | head -n 1 | \
16996
32afaa947f6e determine Poly/ML runtime system version
wenzelm
parents:
diff changeset
    11
    sed -n 's,^Poly/ML RTS version [^ ]*\(-[^ ]*\).*$,\1,p'
32afaa947f6e determine Poly/ML runtime system version
wenzelm
parents:
diff changeset
    12
fi