lib/scripts/polyml-version
changeset 31695 36c5c15597f2
parent 29145 b1c6f4563df7
child 40546 f46c902a8438
     1.1 --- a/lib/scripts/polyml-version	Wed Jun 17 18:43:44 2009 +0200
     1.2 +++ b/lib/scripts/polyml-version	Wed Jun 17 23:22:52 2009 +0200
     1.3 @@ -5,13 +5,8 @@
     1.4  echo -n polyml
     1.5  
     1.6  if [ -x "$ML_HOME/poly" ]; then
     1.7 -  if [ -x "$ML_HOME/polyimport" ]; then
     1.8 -    env LD_LIBRARY_PATH="$ML_HOME:$ML_HOME/../lib:$LD_LIBRARY_PATH" \
     1.9 -      DYLD_LIBRARY_PATH="$ML_HOME:$ML_HOME/../lib:$DYLD_LIBRARY_PATH" \
    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 +  env LD_LIBRARY_PATH="$ML_HOME:$ML_HOME/../lib:$LD_LIBRARY_PATH" \
    1.17 +    DYLD_LIBRARY_PATH="$ML_HOME:$ML_HOME/../lib:$DYLD_LIBRARY_PATH" \
    1.18 +    "$ML_HOME/poly" -v -H 10 | \
    1.19 +    sed -n 's,^Poly/ML.*RTS version: [^ ]*\(-[^ ]*\).*$,\1,p'
    1.20  fi