浏览代码

gen_build_files.sh: better comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko 13 年之前
父节点
当前提交
7a3f8e2fe1
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      scripts/gen_build_files.sh

+ 4 - 3
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}"