aboutsummaryrefslogtreecommitdiff
path: root/lang/sml-nj-devel/files/do-patch-src::system::makeml
diff options
context:
space:
mode:
Diffstat (limited to 'lang/sml-nj-devel/files/do-patch-src::system::makeml')
-rw-r--r--lang/sml-nj-devel/files/do-patch-src::system::makeml31
1 files changed, 31 insertions, 0 deletions
diff --git a/lang/sml-nj-devel/files/do-patch-src::system::makeml b/lang/sml-nj-devel/files/do-patch-src::system::makeml
new file mode 100644
index 000000000000..8be80ccde9de
--- /dev/null
+++ b/lang/sml-nj-devel/files/do-patch-src::system::makeml
@@ -0,0 +1,31 @@
+--- src/system/makeml.orig Fri May 17 22:48:38 2002
++++ src/system/makeml Thu May 23 02:25:57 2002
+@@ -6,7 +6,9 @@
+ twoup=`pwd`
+ cd $here
+
+-LINK=$twoup/bin/.link-sml
++INSTALLROOT=${INSTALLROOT:-$twoup}
++
++LINK=$INSTALLROOT/bin/.link-sml
+
+ if [ ! -x $LINK ] ; then
+ echo $this: link script $LINK is not operational.
+@@ -47,14 +49,14 @@
+ # ... unless it was already set at the time we run this script.
+ #
+
+-CM_PATHCONFIG=${CM_PATHCONFIG:-$twoup/lib/pathconfig}
++CM_PATHCONFIG=${CM_PATHCONFIG:-$INSTALLROOT/lib/pathconfig}
+ export CM_PATHCONFIG
+
+ #
+ # use the arch-n-opsys script to determine the ARCH/OS if possible
+ #
+-if [ -f $twoup/bin/.arch-n-opsys ]; then
+- ARCH_N_OPSYS=`$twoup/bin/.arch-n-opsys`
++if [ -f $INSTALLROOT/bin/.arch-n-opsys ]; then
++ ARCH_N_OPSYS=`$INSTALLROOT/bin/.arch-n-opsys`
+ if [ "$?" = "0" ]; then
+ eval $ARCH_N_OPSYS
+ echo $this: architecture = $ARCH