summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
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