diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-14 20:30:44 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-14 20:30:44 +0200 |
| commit | c84c85ae345f6b3a4ba74ae1ab22acddd41fa456 (patch) | |
| tree | d6ae7d304596a466be5960368dd190233cf8acf4 /scripts | |
| parent | 5055a9f98999d3a6c2f4d043a85f6c2d6fb7eaf2 (diff) | |
| download | busybox-w32-c84c85ae345f6b3a4ba74ae1ab22acddd41fa456.tar.gz busybox-w32-c84c85ae345f6b3a4ba74ae1ab22acddd41fa456.tar.bz2 busybox-w32-c84c85ae345f6b3a4ba74ae1ab22acddd41fa456.zip | |
gen_build_files: use raw reads (ones which don't eat backslashes)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/gen_build_files.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh index 2baefa2ee..73c9916c7 100755 --- a/scripts/gen_build_files.sh +++ b/scripts/gen_build_files.sh | |||
| @@ -7,7 +7,7 @@ cd -- "$2" || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; } | |||
| 7 | 7 | ||
| 8 | srctree="$1" | 8 | srctree="$1" |
| 9 | 9 | ||
| 10 | find -type d | while read; do | 10 | find -type d | while read -r; do |
| 11 | d="$REPLY" | 11 | d="$REPLY" |
| 12 | 12 | ||
| 13 | src="$srctree/$d/Kbuild.src" | 13 | src="$srctree/$d/Kbuild.src" |
| @@ -17,7 +17,7 @@ find -type d | while read; do | |||
| 17 | 17 | ||
| 18 | s=`sed -n 's@^//kbuild:@@p' -- "$srctree/$d"/*.c` | 18 | s=`sed -n 's@^//kbuild:@@p' -- "$srctree/$d"/*.c` |
| 19 | echo "# DO NOT EDIT. This file is generated from Kbuild.src" >"$dst.$$.tmp" | 19 | echo "# DO NOT EDIT. This file is generated from Kbuild.src" >"$dst.$$.tmp" |
| 20 | while read; do | 20 | while read -r; do |
| 21 | test x"$REPLY" = x"INSERT" && REPLY="$s" | 21 | test x"$REPLY" = x"INSERT" && REPLY="$s" |
| 22 | printf "%s\n" "$REPLY" | 22 | printf "%s\n" "$REPLY" |
| 23 | done <"$src" >>"$dst.$$.tmp" | 23 | done <"$src" >>"$dst.$$.tmp" |
| @@ -37,7 +37,7 @@ find -type d | while read; do | |||
| 37 | 37 | ||
| 38 | s=`sed -n 's@^//config:@@p' -- "$srctree/$d"/*.c` | 38 | s=`sed -n 's@^//config:@@p' -- "$srctree/$d"/*.c` |
| 39 | echo "# DO NOT EDIT. This file is generated from Config.src" >"$dst.$$.tmp" | 39 | echo "# DO NOT EDIT. This file is generated from Config.src" >"$dst.$$.tmp" |
| 40 | while read; do | 40 | while read -r; do |
| 41 | test x"$REPLY" = x"INSERT" && REPLY="$s" | 41 | test x"$REPLY" = x"INSERT" && REPLY="$s" |
| 42 | printf "%s\n" "$REPLY" | 42 | printf "%s\n" "$REPLY" |
| 43 | done <"$src" >>"$dst.$$.tmp" | 43 | done <"$src" >>"$dst.$$.tmp" |
