[Pkg-php-commits] [php/debian-sid] Don't ship empty maintainer scripts

Raphael Geissert geissert at debian.org
Mon Feb 22 22:26:04 UTC 2010


---
 debian/rules |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/debian/rules b/debian/rules
index a683f98..b066bfe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -553,6 +553,8 @@ binary-arch: build install
 		  < debian/php5-module.postinst \
 		| sed -e'/#EXTRA#/ d' \
 		  > debian/php5-$${package}.postinst; \
+		c=`grep -vE '^(#|set|$)' < debian/php5-$${package}.postinst | wc -l`; \
+		[ "$$c" != "0" ] || $(RM) debian/php5-$${package}.postinst; \
 	done
 
 	# generate the config snippets for various php
-- 
1.6.3.3





More information about the Pkg-php-commits mailing list