lib/scripts/polyml-version
author wenzelm
Thu May 20 20:20:52 2010 +0200 (2010-05-20)
changeset 37012 106c56e916f8
parent 31695 36c5c15597f2
child 40546 f46c902a8438
permissions -rwxr-xr-x
enable shell script editor mode;
     1 #!/usr/bin/env bash
     2 #
     3 # polyml-version --- determine Poly/ML runtime system version
     4 
     5 echo -n polyml
     6 
     7 if [ -x "$ML_HOME/poly" ]; then
     8   env LD_LIBRARY_PATH="$ML_HOME:$ML_HOME/../lib:$LD_LIBRARY_PATH" \
     9     DYLD_LIBRARY_PATH="$ML_HOME:$ML_HOME/../lib:$DYLD_LIBRARY_PATH" \
    10     "$ML_HOME/poly" -v -H 10 | \
    11     sed -n 's,^Poly/ML.*RTS version: [^ ]*\(-[^ ]*\).*$,\1,p'
    12 fi