16996
|
1 |
#!/usr/bin/env bash
|
|
2 |
#
|
|
3 |
# $Id$
|
|
4 |
#
|
|
5 |
# polyml-version --- determine Poly/ML runtime system version
|
|
6 |
|
|
7 |
echo -n polyml
|
|
8 |
|
|
9 |
if [ -x "$ML_HOME/poly" ]; then
|
20748
|
10 |
if [ -x "$ML_HOME/polyimport" ]; then
|
20758
|
11 |
env LD_LIBRARY_PATH="$ML_HOME:$ML_HOME/../lib:$LD_LIBRARY_PATH" \
|
21652
|
12 |
DYLD_LIBRARY_PATH="$ML_HOME:$ML_HOME/../lib:$DYLD_LIBRARY_PATH" \
|
20758
|
13 |
"$ML_HOME/poly" -v | \
|
20748
|
14 |
sed -n 's,^Poly/ML.*RTS version: [^ ]*\(-[^ ]*\).*$,\1,p'
|
|
15 |
else
|
|
16 |
"$ML_HOME/poly" -noDisplay -r /dev/null | head -n 1 | \
|
|
17 |
sed -n 's,^Poly/ML RTS version [^ ]*\(-[^ ]*\).*$,\1,p'
|
|
18 |
fi
|
16996
|
19 |
fi
|