diff options
-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: |