diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-11-25 06:55:18 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-11-25 06:55:18 +0100 |
| commit | 7a3f8e2fe13ec45990cab7e53d773fcb782d5fd3 (patch) | |
| tree | 55cb4f9939d65837d2e6baf7dda0166f0c4186cb /scripts | |
| parent | 749e305d3671368a8d08de002f5235298ed1ed53 (diff) | |
| download | busybox-w32-7a3f8e2fe13ec45990cab7e53d773fcb782d5fd3.tar.gz busybox-w32-7a3f8e2fe13ec45990cab7e53d773fcb782d5fd3.tar.bz2 busybox-w32-7a3f8e2fe13ec45990cab7e53d773fcb782d5fd3.zip | |
gen_build_files.sh: better comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/gen_build_files.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh index ac8ccb933..03831f501 100755 --- a/scripts/gen_build_files.sh +++ b/scripts/gen_build_files.sh | |||
| @@ -18,9 +18,10 @@ generate() | |||
| 18 | local src="$1" dst="$2" header="$3" insert="$4" | 18 | local src="$1" dst="$2" header="$3" insert="$4" |
| 19 | #chk "${dst}" | 19 | #chk "${dst}" |
| 20 | ( | 20 | ( |
| 21 | # need to use printf: different shells have inconsistent | 21 | # Need to use printf: different shells have inconsistent |
| 22 | # rules re handling of "\n" in their params, | 22 | # rules re handling of "\n" in echo params, |
| 23 | # and ${insert} definitely contains "\n" | 23 | # and ${insert} definitely contains "\n". |
| 24 | # Therefore, echo "${header}" would not work: | ||
| 24 | printf "%s\n" "${header}" | 25 | printf "%s\n" "${header}" |
| 25 | if grep -qs '^INSERT$' "${src}"; then | 26 | if grep -qs '^INSERT$' "${src}"; then |
| 26 | sed -n '1,/^INSERT$/p' "${src}" | 27 | sed -n '1,/^INSERT$/p' "${src}" |
