lib/scripts/polyml-version
author wenzelm
Mon Aug 01 19:20:49 2005 +0200 (2005-08-01)
changeset 16996 32afaa947f6e
child 17419 16df5a5eef68
permissions -rwxr-xr-x
determine Poly/ML runtime system version
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@16996
    10
  "$ML_HOME/poly" -r /dev/null | head -n 1 | \
wenzelm@16996
    11
    sed -n 's,^Poly/ML RTS version [^ ]*\(-[^ ]*\).*$,\1,p'
wenzelm@16996
    12
fi