Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/miniroot make sure . install.sub etc work regardless...



details:   https://anonhg.NetBSD.org/src/rev/d2f783c94182
branches:  trunk
changeset: 477032:d2f783c94182
user:      sjg <sjg%NetBSD.org@localhost>
date:      Thu Oct 07 00:07:05 1999 +0000

description:
make sure . install.sub etc work regardless of PATH

diffstat:

 distrib/miniroot/install.sh |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 3b490f2ddb8d -r d2f783c94182 distrib/miniroot/install.sh
--- a/distrib/miniroot/install.sh       Wed Oct 06 23:01:45 1999 +0000
+++ b/distrib/miniroot/install.sh       Thu Oct 07 00:07:05 1999 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: install.sh,v 1.20 1999/04/12 22:17:21 is Exp $
+#      $NetBSD: install.sh,v 1.21 1999/10/07 00:07:05 sjg Exp $
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -64,11 +64,20 @@
 #      md_native_fsopts()      - native filesystem options for disk installs
 #      md_makerootwritable()   - make root writable (at least /tmp)
 
+# we need to make sure .'s below work if this directory is not in $PATH
+# dirname may not be available but expr is
+Mydir=`expr $0 : '^\(.*\)/[^/]*$'`
+Mydir=`cd ${Mydir:-.}; pwd`
+
+# this is the most likely place to find the binary sets
+# so save them having to type it in
+Default_sets_dir=$Mydir/../../binary/sets
+
 # include machine dependent subroutines
-. install.md
+. $Mydir/install.md
 
 # include common subroutines
-. install.sub
+. $Mydir/install.sub
 
 # which sets?
 THESETS="$ALLSETS $MDSETS"



Home | Main Index | Thread Index | Old Index