changeset 302:4f4c233374ca noffle

[svn] removed sed
author godisch
date Sat, 15 Feb 2003 21:34:21 +0000
parents 3b5b7f3fd71f
children 399ccb5e641b
files debian/rules
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/debian/rules	Fri Feb 14 13:54:32 2003 +0000
+++ b/debian/rules	Sat Feb 15 21:34:21 2003 +0000
@@ -1,5 +1,5 @@
 #!/usr/bin/make -f
-# $Id: rules 434 2003-02-14 13:54:32Z godisch $
+# $Id: rules 436 2003-02-15 21:34:21Z godisch $
 
 #export MAINT_BUILD=1
 
@@ -146,8 +146,8 @@
 	$(INSTALL) -m 0755 debian/postrm   $(DEBDIR)
 	$(INSTALL) -m 0755 debian/preinst  $(DEBDIR)
 	$(INSTALL) -m 0755 debian/prerm    $(DEBDIR)
-	find $(BUILDDIR)/usr -type f -print0 | xargs -0 md5sum | sed 's@  debian/noffle/@  @' > $(DEBDIR)/md5sums
-	find $(BUILDDIR)/etc -type f | sed 's@^debian/noffle@@' | egrep -vx '/etc/default/noffle|/etc/news/noffle\.conf' > $(DEBDIR)/conffiles
+	cd $(BUILDDIR) && find usr -type f -print0 | xargs -0 md5sum > DEBIAN/md5sums
+	cd $(BUILDDIR) && find ./etc -type f | cut -c 2- | egrep -vx '/etc/default/noffle|/etc/news/noffle\.conf' > DEBIAN/conffiles
 	debconf-mergetemplate debian/templates.?? debian/templates > $(DEBDIR)/templates
 	chown root:root $(DEBDIR)/md5sums $(DEBDIR)/conffiles $(DEBDIR)/templates
 	chmod 0644 $(DEBDIR)/md5sums $(DEBDIR)/conffiles $(DEBDIR)/templates
@@ -156,7 +156,6 @@
 	dpkg-shlibdeps $(BUILDDIR)/usr/bin/noffle
 	dpkg-gencontrol -isp -pnoffle -P$(BUILDDIR)
 	dpkg --build $(BUILDDIR) ..
-
 	# binary target finished
 
 .PHONY: clean configure build binary binary-indep binary-arch