updated to recent changes of Poly/ML directory layout;
authorwenzelm
Sat, 04 Jun 2016 16:54:23 +0200
changeset 63229 f951c624c1a1
parent 63228 acfa595636c7
child 63230 ae5275fa96dc
updated to recent changes of Poly/ML directory layout;
Admin/polyml/CHECKLIST
Admin/polyml/build
Admin/polyml/polyi
Admin/polyml/polyml
--- a/Admin/polyml/CHECKLIST	Sat Jun 04 16:23:42 2016 +0200
+++ b/Admin/polyml/CHECKLIST	Sat Jun 04 16:54:23 2016 +0200
@@ -12,5 +12,3 @@
 * include sha1 source and binary for each platform
 
 * linux: include copy of libgmp.so with symlinks from build host
-
-* include copy of "polyml" script
--- a/Admin/polyml/build	Sat Jun 04 16:23:42 2016 +0200
+++ b/Admin/polyml/build	Sat Jun 04 16:54:23 2016 +0200
@@ -87,6 +87,12 @@
 )
 
 mkdir -p "$TARGET"
+for X in "$TARGET"/*
+do
+  [ -d "$X" ] && rm -rf "$X"
+done
+rm -rf "$TARGET/polyml"
+cp -a "$THIS/polyi" "$TARGET/"
 mv "$SOURCE/$TARGET/bin/"* "$TARGET/"
 mv "$SOURCE/$TARGET/lib/"* "$TARGET/"
 rmdir "$SOURCE/$TARGET/bin" "$SOURCE/$TARGET/lib"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Admin/polyml/polyi	Sat Jun 04 16:54:23 2016 +0200
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+#
+# Portable Poly/ML command-line tool
+
+THIS="$(cd "$(dirname "$0")"; pwd)"
+
+export LD_LIBRARY_PATH="$THIS:$LD_LIBRARY_PATH"
+export DYLD_LIBRARY_PATH="$THIS:$DYLD_LIBRARY_PATH"
+
+if type -p rlwrap > /dev/null
+then
+  exec rlwrap "$THIS/poly" "$@"
+else
+  exec "$THIS/poly" "$@"
+fi
--- a/Admin/polyml/polyml	Sat Jun 04 16:23:42 2016 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-#!/usr/bin/env bash
-#
-# Minimal Poly/ML startup script
-
-THIS="$(cd "$(dirname "$0")"; pwd)"
-
-export LD_LIBRARY_PATH="$THIS:$LD_LIBRARY_PATH"
-export DYLD_LIBRARY_PATH="$THIS:$DYLD_LIBRARY_PATH"
-
-exec "$THIS/poly" "$@"