[libdancer-plugin-auth-extensible-perl] 01/01: standardize removal of files/directories

gregor herrmann gregoa at debian.org
Thu Aug 3 20:47:46 UTC 2017


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

gregoa pushed a commit to branch master
in repository libdancer-plugin-auth-extensible-perl.

commit 9d7b6584c1be053360a4aded5fe8c623bdd69cab
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Aug 3 16:47:16 2017 -0400

    standardize removal of files/directories
    
    and get rid of dpkg-parsechangelog
    
    Gbp-Dch: Ignore
---
 debian/rules | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index a85c6ff..7652e8a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,12 +1,13 @@
 #!/usr/bin/make -f
 
-pkg := $(shell dpkg-parsechangelog --show-field=Source)
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 %:
 	dh $@
 
 override_dh_auto_install:
 	dh_auto_install
-	rm --verbose $(CURDIR)/debian/$(pkg)/usr/bin/generate-crypted-password
+	$(RM) --verbose $(TMP)/usr/bin/generate-crypted-password
 	# delete the empty directory as well
-	rmdir --verbose $(CURDIR)/debian/$(pkg)/usr/bin
+	rmdir --verbose $(TMP)/usr/bin

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdancer-plugin-auth-extensible-perl.git



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