lib/scripts/polyml-version
author paulson
Wed, 19 Jul 2006 11:55:26 +0200
changeset 20153 6ff5d35749b0
parent 17419 16df5a5eef68
child 20748 4bcf492c6c9d
permissions -rwxr-xr-x
Fixed the bugs introduced by the last commit! Output is now *identical* to that produced by the old version, based on a-lists.

#!/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