lib/scripts/polyml-version
author krauss
Tue, 06 Jun 2006 09:28:24 +0200
changeset 19782 48c4632e2c28
parent 17419 16df5a5eef68
child 20748 4bcf492c6c9d
permissions -rwxr-xr-x
HOL/Tools/function_package: imporoved handling of guards, added an example

#!/usr/bin/env bash
#
# $Id$
#
# polyml-version --- determine Poly/ML runtime system version

echo -n polyml

if [ -x "$ML_HOME/poly" ]; then
  "$ML_HOME/poly" -noDisplay -r /dev/null | head -n 1 | \
    sed -n 's,^Poly/ML RTS version [^ ]*\(-[^ ]*\).*$,\1,p'
fi