← Commit list

4ea37d62c

Denys Vlasenko
Denys Vlasenko
2011-10-19
FAILED Duration: 204s

Subject

gen_build_files.sh: simplify "print everything up to INSERT line" part

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+2 -2
@@ -27,11 +27,11 @@ generate()
# rules re handling of "\n" in echo params.
printf "%s\n" "${header}"
# print everything up to INSERT line
- sed -n '/^INSERT$/q;1,/^INSERT$/p' "${src}"
+ sed -n '/^INSERT$/ q; p' "${src}"
# copy stdin to stdout
cat
# print everything after INSERT line
- sed -n '/^INSERT$/{:l;n;p;bl}' "${src}"
+ sed -n '/^INSERT$/ { :l; n; p; bl }' "${src}"
} >"${dst}.tmp"
if ! cmp -s "${dst}" "${dst}.tmp"; then
gen "${dst}"