Include automatic determination of poly version.
authoraspinall
Thu, 14 Apr 2005 19:30:57 +0200
changeset 15734 56a807868e23
parent 15733 75b9219980d3
child 15735 953f188e16c6
Include automatic determination of poly version.
etc/settings
--- a/etc/settings	Thu Apr 14 19:16:07 2005 +0200
+++ b/etc/settings	Thu Apr 14 19:30:57 2005 +0200
@@ -33,7 +33,9 @@
 
   # Poly/ML 4.0, 4.1, 4.1.x
   # include version number, needed for choosing right options
-  ML_SYSTEM=polyml-4.1.3    
+  # If automatic setting doesn't work, use e.g. ML_VERSION=4.1.3
+  ML_VERSION=$(echo "OS.Process.exit OS.Process.success;" | /usr/bin/poly --version  | sed -n 's,Poly/ML[ ]*\([^ ]*\)[ ]*Release,\1,p')
+  ML_SYSTEM=polyml-${ML_VERSION}
   # processor/OS type
   ML_PLATFORM=x86-linux
   # where to find binaries