lib/scripts/polyml-version
changeset 20748 4bcf492c6c9d
parent 17419 16df5a5eef68
child 20758 19be439e35f9
     1.1 --- a/lib/scripts/polyml-version	Wed Sep 27 23:41:12 2006 +0200
     1.2 +++ b/lib/scripts/polyml-version	Wed Sep 27 23:41:12 2006 +0200
     1.3 @@ -7,6 +7,11 @@
     1.4  echo -n polyml
     1.5  
     1.6  if [ -x "$ML_HOME/poly" ]; then
     1.7 -  "$ML_HOME/poly" -noDisplay -r /dev/null | head -n 1 | \
     1.8 -    sed -n 's,^Poly/ML RTS version [^ ]*\(-[^ ]*\).*$,\1,p'
     1.9 +  if [ -x "$ML_HOME/polyimport" ]; then
    1.10 +    "$ML_HOME/poly" -v | \
    1.11 +      sed -n 's,^Poly/ML.*RTS version: [^ ]*\(-[^ ]*\).*$,\1,p'
    1.12 +  else
    1.13 +    "$ML_HOME/poly" -noDisplay -r /dev/null | head -n 1 | \
    1.14 +      sed -n 's,^Poly/ML RTS version [^ ]*\(-[^ ]*\).*$,\1,p'
    1.15 +  fi
    1.16  fi