summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDenys Vlasenko2010-05-15 21:08:51 +0200
committerDenys Vlasenko2010-05-15 21:08:51 +0200
commit084e2284c700561732cc708ee557169be9d18308 (patch)
treeefdf512c0cc8221675aecd6bf9f9d9ea366b333d /scripts
parentb367bb2a620d3c349b0a61b949a6ebca32bf5395 (diff)
downloadbusybox-084e2284c700561732cc708ee557169be9d18308.zip
busybox-084e2284c700561732cc708ee557169be9d18308.tar.gz
gen_build_files.sh uses bashism, document it
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen_build_files.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh
index 73c9916..ea14de5 100755
--- a/scripts/gen_build_files.sh
+++ b/scripts/gen_build_files.sh
@@ -1,4 +1,7 @@
-#!/bin/sh
+#!/bin/bash
+# bashism:
+# "read -r" without variable name reads line into $REPLY
+# without stripping whitespace.
test $# -ge 2 || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; }
@@ -7,9 +10,7 @@ cd -- "$2" || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; }
srctree="$1"
-find -type d | while read -r; do
- d="$REPLY"
-
+find -type d | while read -r d; do
src="$srctree/$d/Kbuild.src"
dst="$d/Kbuild"
if test -f "$src"; then
@@ -49,7 +50,6 @@ find -type d | while read -r; do
mv -- "$dst.$$.tmp" "$dst"
fi
fi
-
done
# Last read failed. This is normal. Don't exit with its error code: