Commit 8a7ea242 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Tim Gardner

UBUNTU: [Debian] generate a SRCPKGNAME-udebs-FLAVOUR-di depending on all built udebs

Build a nice little meta package for use in the seeds.
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 6fb26a7c
......@@ -42,3 +42,26 @@ do-binary-udebs: debian/control
$(lockme) dh_gencontrol -p$$i; \
dh_builddeb -p$$i; \
done
# Generate the meta-udeb dependancy lists.
awk ' \
/Package: / { package=$$2 } \
(/Package-Type: udeb/ && package !~ /^'$(src_pkg_name)'-udebs-/) { \
n = split(package, bits, "-"); \
flavour = bits[n - 1]; \
udebs[flavour] = udebs[flavour] package ", "; \
} \
END { \
for (flavour in udebs) { \
package="'$(src_pkg_name)'-udebs-" flavour; \
file="debian/" package ".substvars"; \
print("udeb:Depends=" udebs[flavour]) > file; \
metas="'$(builddir)'/udeb-meta-packages"; \
print(package) >metas \
} \
} \
' <$(CURDIR)/debian/control
while read i; do \
$(lockme) dh_gencontrol -p$$i; \
dh_builddeb -p$$i; \
done <$(builddir)/udeb-meta-packages
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment