mkimage-profiles/bin
Michael Shigorin 2bc28a9cae bin/archdep-filter: implement multi-matching
This has been inspired by a few commits that cared
for package availability reasons on a particular
architecture; the problem at hand is that pkglists
might need to include groups of packages that are
(un)available on groups of arches, and tackling that
with plain pkg@arch just results in combinatorial
explosion of that matrix.

Arches are handled one-by-one with a few hardcoded
macro substitutions.

Exploding a "pkg@arch1,arch2" string into a set of:

pkg@arch1
pkg@arch2

with subsequent archdep pruning would do the trick;
so here's another sed oneliner that does just that:

$ echo 'pkg@X86,ARM,ppc64le' |
  sed -r ':loop; s/^((([^@]+@)[^,]+)+),([^,]+)/\1\n\3\4/; t loop'
pkg@X86
pkg@ARM
pkg@ppc64le

See-also: 9601a9e7ce
See-also: 5581dc91ec
See-also: http://stackoverflow.com/a/55781741/561921
2021-11-23 23:49:48 +07:00
..
archdep-filter bin/archdep-filter: implement multi-matching 2021-11-23 23:49:48 +07:00
check-pkg-list bin/check-pkg-list: return error, if lists contain unavailable packages 2021-08-23 20:53:19 +07:00
check-recipe check-recipe: generalize dependency control 2017-01-29 15:50:58 +03:00
cleanlog cleanlog, reports.mk: factor the script out 2019-06-10 19:47:14 +03:00
columnize more readable `make help', finally 2012-04-02 17:16:27 +03:00
metadep-expander bin/metadep-expander: do not abort build, if metapackage not available 2021-08-23 20:53:19 +07:00
mktmpdir mktmpdir: refer to docs 2016-12-26 15:56:46 +03:00
mp-commit mp-commit: disable git hooks 2017-02-08 23:04:24 +03:00
mp-showref git usage refactoring 2012-08-10 00:12:46 +03:00
pkgdups READMEs: pkglist related clarification 2012-04-09 22:21:10 +03:00
report-filter initial target tracing support and reporting 2012-03-19 19:23:38 +02:00
report-targets report-targets: tweak targets 2017-01-29 15:02:05 +03:00
report-targets2vars initial target tracing support and reporting 2012-03-19 19:23:38 +02:00
tags2lists tags2lists: skip backup files too 2014-01-16 15:52:12 +04:00
tar2fs tar2fs: start partitions from 34 MiB for riscv64 2021-11-22 22:30:28 +07:00