Fix problems with old bash
authorDavid Schleef <ds@schleef.org>
Tue, 15 Jan 2002 12:00:30 +0000 (12:00 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 15 Jan 2002 12:00:30 +0000 (12:00 +0000)
configure
scripts/dep.linux
scripts/linux_flags/Makefile

index 3ff105ad910a9a832722c10c2ea1540f578b49d0..81f82b74aafb98cd1a2e77c8b63bf57fbcaeb36c 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 
-topdir=${PWD}
+topdir=$(pwd)
 
 interactive=y
 menu=n
index db6e16d813f0abaaadca1e3dbc63f547090c3356..f10b70fadbe0e7568dd116c949f6f79ed53f3c4d 100755 (executable)
@@ -77,7 +77,7 @@ then
 EOF
 fi
 
-topdir=${PWD}
+topdir=$(pwd)
 
 cd ${topdir}/scripts/linux_flags
 make LINUXDIR=${LINUXDIR} &>/dev/null
index be6d6284181f0bb6fc50218bfa80a05d209e8d3d..98c65ff44b3d887ff18e0d95a20493f5b281cc78 100644 (file)
@@ -2,7 +2,7 @@
 #LINUXDIR=/home/ds/linux/linux-2.4.16-rthal5
 
 all:
-       $(MAKE) -C $(LINUXDIR) SUBDIRS=$(PWD) modules
+       $(MAKE) -C $(LINUXDIR) SUBDIRS=$(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) modules
 
 modules:
        echo LINUXDIR=$(LINUXDIR) >flags