lib/scripts/polyml-version
author wenzelm
Mon, 29 Aug 2005 16:18:04 +0200
changeset 17184 3d80209e9a53
parent 16996 32afaa947f6e
child 17419 16df5a5eef68
permissions -rwxr-xr-x
use AList operations;

#!/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" -r /dev/null | head -n 1 | \
    sed -n 's,^Poly/ML RTS version [^ ]*\(-[^ ]*\).*$,\1,p'
fi