projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e08886
)
made prompting for linux directory work like prompting for rtlinux directory
author
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 8 Nov 2001 17:32:35 +0000
(17:32 +0000)
committer
Frank 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
patch
|
blob
|
history
diff --git
a/scripts/dep.linux
b/scripts/dep.linux
index 25ba9b80349b7535ee2d8207160bd31add54dd71..880dadb1be95f691ff5957e5265999a80ffb5e84 100755
(executable)
--- a/
scripts/dep.linux
+++ b/
scripts/dep.linux
@@
-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