gen_build_files.sh: simplify "print everything up to INSERT line" part
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
efd08bfa0a
commit
4ea37d62c2
@ -27,7 +27,7 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user