mirror of
https://github.com/sheumann/hush.git
synced 2024-12-26 10:32:02 +00:00
gen_build_files: use raw reads (ones which don't eat backslashes)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
5055a9f989
commit
c84c85ae34
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user