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 xbps-src: multiple performance improvements 2019-07-10 20:28:46 +02:00
05-prepare-32bit.sh hooks/pre-pkg/05-prepare-32bit.sh: fix symlinks 2019-05-28 15:14:23 +02:00
06-shlib-provides.sh xbps-src: exit properly if mktemp(1) fails, not from its subshell. 2019-06-17 17:38:07 +02:00
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 pre-pkg: use existing info to check empty package 2020-05-31 02:11:11 +00:00
999-collected-rdeps.sh xbps-src: new pre-pkg hook that prints collected rdeps. 2019-12-15 18:55:58 +01:00