diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-15 21:08:51 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-15 21:08:51 +0200 |
commit | 084e2284c700561732cc708ee557169be9d18308 (patch) | |
tree | efdf512c0cc8221675aecd6bf9f9d9ea366b333d /scripts/gen_build_files.sh | |
parent | b367bb2a620d3c349b0a61b949a6ebca32bf5395 (diff) | |
download | busybox-w32-084e2284c700561732cc708ee557169be9d18308.tar.gz busybox-w32-084e2284c700561732cc708ee557169be9d18308.tar.bz2 busybox-w32-084e2284c700561732cc708ee557169be9d18308.zip |
gen_build_files.sh uses bashism, document it
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/gen_build_files.sh')
-rwxr-xr-x | scripts/gen_build_files.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh index 73c9916c7..ea14de5e2 100755 --- a/scripts/gen_build_files.sh +++ b/scripts/gen_build_files.sh | |||
@@ -1,4 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/bash |
2 | # bashism: | ||
3 | # "read -r" without variable name reads line into $REPLY | ||
4 | # without stripping whitespace. | ||
2 | 5 | ||
3 | test $# -ge 2 || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; } | 6 | test $# -ge 2 || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; } |
4 | 7 | ||
@@ -7,9 +10,7 @@ cd -- "$2" || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; } | |||
7 | 10 | ||
8 | srctree="$1" | 11 | srctree="$1" |
9 | 12 | ||
10 | find -type d | while read -r; do | 13 | find -type d | while read -r d; do |
11 | d="$REPLY" | ||
12 | |||
13 | src="$srctree/$d/Kbuild.src" | 14 | src="$srctree/$d/Kbuild.src" |
14 | dst="$d/Kbuild" | 15 | dst="$d/Kbuild" |
15 | if test -f "$src"; then | 16 | if test -f "$src"; then |
@@ -49,7 +50,6 @@ find -type d | while read -r; do | |||
49 | mv -- "$dst.$$.tmp" "$dst" | 50 | mv -- "$dst.$$.tmp" "$dst" |
50 | fi | 51 | fi |
51 | fi | 52 | fi |
52 | |||
53 | done | 53 | done |
54 | 54 | ||
55 | # Last read failed. This is normal. Don't exit with its error code: | 55 | # Last read failed. This is normal. Don't exit with its error code: |