made prompting for linux directory work like prompting for rtlinux directory
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 8 Nov 2001 17:32:35 +0000 (17:32 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 8 Nov 2001 17:32:35 +0000 (17:32 +0000)
(doesn't assume directory found in .sourcedirs is correct)

scripts/dep.linux

index 25ba9b80349b7535ee2d8207160bd31add54dd71..880dadb1be95f691ff5957e5265999a80ffb5e84 100755 (executable)
@@ -1,11 +1,9 @@
 #!/bin/sh
 
-if [ "$LINUXDIR" = "" ]
-then
-       echo -n "Enter location of Linux source tree [/usr/src/linux]: "
-       read LINUXDIR
-       : ${LINUXDIR:=/usr/src/linux}
-fi
+default=${LINUXDIR:=/usr/src/linux}
+echo -n "Enter location of Linux source tree [$default]: "
+read LINUXDIR
+: ${LINUXDIR:=$default}
 
 if [ ! -f "$LINUXDIR/.config" ];then
        echo Kernel source tree at $LINUXDIR is not configured