lib/scripts/polyml-version
author wenzelm
Thu Sep 15 17:18:57 2005 +0200 (2005-09-15)
changeset 17419 16df5a5eef68
parent 16996 32afaa947f6e
child 20748 4bcf492c6c9d
permissions -rwxr-xr-x
poly -doDisplay;
wenzelm@16996
     1
#!/usr/bin/env bash
wenzelm@16996
     2
#
wenzelm@16996
     3
# $Id$
wenzelm@16996
     4
#
wenzelm@16996
     5
# polyml-version --- determine Poly/ML runtime system version
wenzelm@16996
     6
wenzelm@16996
     7
echo -n polyml
wenzelm@16996
     8
wenzelm@16996
     9
if [ -x "$ML_HOME/poly" ]; then
wenzelm@17419
    10
  "$ML_HOME/poly" -noDisplay -r /dev/null | head -n 1 | \
wenzelm@16996
    11
    sed -n 's,^Poly/ML RTS version [^ ]*\(-[^ ]*\).*$,\1,p'
wenzelm@16996
    12
fi