blob: 8be80ccde9de5d24c5e9db1a4589cdd683cbe272 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|