mkimage-profiles/doc
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
..
.fop.xconf asciidoc: moved support files into doc/ 2012-11-05 17:20:12 +04:00
.gitignore doc/.gitignore: ignore mkimage-profiles.7 2021-07-23 16:11:03 +07:00
apt.conf.sample added doc/apt.conf.sample 2011-11-04 16:54:41 +02:00
archdep.txt bin/archdep-filter: implement multi-matching 2021-11-23 23:49:48 +07:00
assumptions.txt doc, grub, stage1, stage2: Add support multiple kernels for grub only 2021-04-12 23:13:47 +07:00
branch.txt doc/branch.txt: update example 2021-09-21 21:07:10 +07:00
debug.txt README, doc: update urls, authors 2021-10-25 15:13:00 +07:00
features.txt README, doc: update urls, authors 2021-10-25 15:13:00 +07:00
gen-asciidoc.txt asciidoc: moved support files into doc/ 2012-11-05 17:20:12 +04:00
Makefile doc/Makefile: not clean .fop.xconf 2021-06-06 19:15:17 +07:00
metadep.txt pkg.in/lists/Makefile, metadep-expander, doc: Add @META suffix for pkglist items 2021-07-23 16:01:47 +07:00
mkimage-profiles.7.in README, doc: update urls, authors 2021-10-25 15:13:00 +07:00
mkimage-profiles.asciidoc README, doc: update urls, authors 2021-10-25 15:13:00 +07:00
params.txt build.mk, params.txt: add parameter USE_QEMU 2021-11-22 22:30:57 +07:00
pkglists.txt Add COMMON_LISTS variable support by analogy COMMON_PACKAGES 2021-08-31 00:42:31 +07:00
profiles.mk.sample doc/profiles.mk.sample: add IMAGEDIR to sample 2021-10-14 15:22:48 +07:00
qemu.txt README, doc: update urls, authors 2021-10-25 15:13:00 +07:00
style.txt doc: assorted updates/fixups 2018-07-25 16:49:05 +03:00
vm.txt build-vm: try system tar2fs first 2016-11-07 19:47:53 +03:00