summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2010-05-14 20:30:44 +0200
committerDenys Vlasenko2010-05-14 20:30:44 +0200
commitc84c85ae345f6b3a4ba74ae1ab22acddd41fa456 (patch)
treed6ae7d304596a466be5960368dd190233cf8acf4
parent5055a9f98999d3a6c2f4d043a85f6c2d6fb7eaf2 (diff)
downloadbusybox-c84c85ae345f6b3a4ba74ae1ab22acddd41fa456.zip
busybox-c84c85ae345f6b3a4ba74ae1ab22acddd41fa456.tar.gz
gen_build_files: use raw reads (ones which don't eat backslashes)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-xscripts/gen_build_files.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh
index 2baefa2..73c9916 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; }
srctree="$1"
-find -type d | while read; do
+find -type d | while read -r; do
d="$REPLY"
src="$srctree/$d/Kbuild.src"
@@ -17,7 +17,7 @@ find -type d | while read; do
s=`sed -n 's@^//kbuild:@@p' -- "$srctree/$d"/*.c`
echo "# DO NOT EDIT. This file is generated from Kbuild.src" >"$dst.$$.tmp"
- while read; do
+ while read -r; do
test x"$REPLY" = x"INSERT" && REPLY="$s"
printf "%s\n" "$REPLY"
done <"$src" >>"$dst.$$.tmp"
@@ -37,7 +37,7 @@ find -type d | while read; do
s=`sed -n 's@^//config:@@p' -- "$srctree/$d"/*.c`
echo "# DO NOT EDIT. This file is generated from Config.src" >"$dst.$$.tmp"
- while read; do
+ while read -r; do
test x"$REPLY" = x"INSERT" && REPLY="$s"
printf "%s\n" "$REPLY"
done <"$src" >>"$dst.$$.tmp"