[git commit master 1/1] gen_build_files.sh: better comment

Denys Vlasenko vda.linux at googlemail.com
Thu Nov 25 05:55:18 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=7a3f8e2fe13ec45990cab7e53d773fcb782d5fd3
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 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 ac8ccb9..03831f5 100755
--- a/scripts/gen_build_files.sh
+++ b/scripts/gen_build_files.sh
@@ -18,9 +18,10 @@ generate()
 	local src="$1" dst="$2" header="$3" insert="$4"
 	#chk "${dst}"
 	(
-		# need to use printf: different shells have inconsistent
-		# rules re handling of "\n" in their params,
-		# and ${insert} definitely contains "\n"
+		# Need to use printf: different shells have inconsistent
+		# rules re handling of "\n" in echo params,
+		# and ${insert} definitely contains "\n".
+		# Therefore, echo "${header}" would not work:
 		printf "%s\n" "${header}"
 		if grep -qs '^INSERT$' "${src}"; then
 			sed -n '1,/^INSERT$/p' "${src}"
-- 
1.7.2.2



More information about the busybox-cvs mailing list