← Commit list

7a3f8e2fe

Denys Vlasenko
Denys Vlasenko
2010-11-25
FAILED Duration: 272s

Subject

gen_build_files.sh: better comment

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

scripts/gen_build_files.sh+4 -3
@@ -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}"