more robust poly startup, by restricting heap size (otherwise it fails on very large memory);
authorwenzelm
Wed Jun 17 23:22:52 2009 +0200 (2009-06-17)
changeset 3169536c5c15597f2
parent 31694 9a04846cac9c
child 31699 b6710a3b4c49
more robust poly startup, by restricting heap size (otherwise it fails on very large memory);
removed Poly/ML 4.x variant;
lib/scripts/polyml-version
     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