[libmemcached-libmemcached-perl] 01/02: Modify debian/rules to remove added files during clean (hopefully get it right this time)

Christopher Hoskin christopher.hoskin at gmail.com
Tue Mar 15 20:15:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

grinorcole-guest pushed a commit to branch master
in repository libmemcached-libmemcached-perl.

commit 4f32838a5fef9d967123ac63688eacfc927b9c90
Author: Christopher Hoskin <christopher.hoskin at gmail.com>
Date:   Tue Mar 15 20:12:35 2016 +0000

    Modify debian/rules to remove added files during clean (hopefully get it right this time)
---
 debian/rules | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 2907349..2b877c6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
-
+BUILDHOME = $(CURDIR)/debian/build
 PIDFILE   = $(BUILDHOME)/memcached.pid
 WHOAMI    = $(shell whoami)
 PORT := $(shell /bin/netstat -want | perl -w -e 'while (<>) { $$used{$$1}=1 if /127\.0\.0\.1:(\d+)/;}; $$port = 20000; while ($$used{$$port}) { $$port++ }; print "$$port\n";')
@@ -19,6 +19,7 @@ override_dh_auto_configure:
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	mkdir -p $(BUILDHOME)
 	memcached -u $(WHOAMI) -p $(PORT) -P $(PIDFILE) -d
 	export PERL_LIBMEMCACHED_TEST_SERVERS=127.0.0.1:$(PORT);\
 	dh_auto_test
@@ -27,4 +28,5 @@ endif
 
 override_dh_clean:
 	dh_clean
-	rm -rf libmemcached
+	rm -rf $(BUILDHOME)
+	rm -f `find debian/libmemcached/ -type f -printf "%P "`

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmemcached-libmemcached-perl.git



More information about the Pkg-perl-cvs-commits mailing list