void-packages/common/hooks/pre-pkg
Đoàn Trần Công Danh 3996821f07 99-pkglint-subpkgs: correct for multiline subpackages
As discussing in [1], on template with "subpackages" as multilines will
report false positive on some packages will never be built.

There're multiple problems here:

- expanded "subpackages" will have an empty line if it has a newline
  inside template
- "sed" expression couldn't work with multilines "subpackages"

Let's not quote "$subpkgs" and "$subpackages" in "printf" to let the
shell do expansion and trim the empty lines for us. And rewrite the
"sed" expression to work with multilines "subpackages"

[1]: https://github.com/void-linux/void-packages/pull/26939#issuecomment-739098547
2020-12-14 09:35:02 +07:00
..
.empty
03-rewrite-python-shebang.sh xbps-src: consume all shebang arguments during rewrite 2020-06-18 09:38:18 +02:00
04-generate-runtime-deps.sh
05-prepare-32bit.sh
06-shlib-provides.sh
90-set-timestamps.sh
99-pkglint-subpkgs.sh 99-pkglint-subpkgs: correct for multiline subpackages 2020-12-14 09:35:02 +07:00
99-pkglint.sh
999-collected-rdeps.sh