summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-07-28 01:29:52 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-07-28 01:29:52 +0200
commit979ea01705259ea410690c93ce3805e7a9959db9 (patch)
tree5008ebb243ecbf2b2158468858bba3e89841f101 /debian/rules
parentaf3da99dd50e47b93d0aa54b531b9dabaa4800af (diff)
Update grub list on -dbg package install too
* debian/rules: Add prerm, preinst, postrm, postinst to -dbg kernels too, to update grub list.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules16
1 files changed, 8 insertions, 8 deletions
diff --git a/debian/rules b/debian/rules
index 8d31fa4..307567f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -168,14 +168,14 @@ install: build
ifeq ($(DEB_HOST_ARCH_OS),hurd)
for script in preinst prerm postinst postrm ; do \
- sed -e "s/@VERSION@/$(VERSION)/g" \
- -e "s/@RELEASE@/$(VERSION)-$(MACHINE)/g" \
- debian/gnumach-image.$$script.in \
- > debian/gnumach-image-$(VERSION)-$(MACHINE).$$script ; \
- sed -e "s/@VERSION@/$(VERSION)/g" \
- -e "s/@RELEASE@/$(VERSION)-xen-$(MACHINE)/g" \
- debian/gnumach-image.$$script.in \
- > debian/gnumach-image-$(VERSION)-xen-$(MACHINE).$$script ; \
+ for prefix in "" -xen ; do \
+ for suffix in "" -dbg ; do \
+ sed -e "s/@VERSION@/$(VERSION)/g" \
+ -e "s/@RELEASE@/$(VERSION)$$prefix-$(MACHINE)$$suffix/g" \
+ debian/gnumach-image.$$script.in \
+ > debian/gnumach-image-$(VERSION)$$prefix-$(MACHINE)$$suffix.$$script ; \
+ done ; \
+ done ; \
done
endif