[Pkg-mongodb-maintainers] [pkg-mongodb] 368/394: Use debian/clean and override dh_auto_clean

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Wed Sep 21 14:00:34 UTC 2016


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

apoikos pushed a commit to branch master
in repository pkg-mongodb.

commit feb68afc6bb8d463c4ad4f29547057d300f56756
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Wed Feb 10 23:54:19 2016 +0200

    Use debian/clean and override dh_auto_clean
    
    scons --clean is really part of dh_auto_clean. The rest of the manually
    removed files are listed in debian/clean instead.
---
 debian/clean |  8 ++++++++
 debian/rules | 10 ++--------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..08d601e
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,8 @@
+debian/tmp-test/
+.scons/
+build/
+failfile.smoke
+smoke-last.json
+buildscripts/*.pyc
+site_scons/*.pyc
+site_scons/site_tools/*.pyc
diff --git a/debian/rules b/debian/rules
index 6a1c3ad..6210b9e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,14 +32,8 @@ ifneq (,$(filter $(DEB_HOST_ARCH), $(no_v8_archs)))
 COMMON_OPTIONS += --disable-scripting
 endif
 
-override_dh_clean:
+override_dh_auto_clean:
 	scons --keep-going --clean $(COMMON_OPTIONS) .
-	find $(CURDIR)/ -name "*.pyc" -delete
-	rm -rf $(CURDIR)/debian/tmp-test/
-	rm -rf $(CURDIR)/.scons/
-	rm -rf $(CURDIR)/build/
-	rm -f $(CURDIR)/failfile.smoke $(CURDIR)/smoke-last.json
-	dh_clean
 
 override_dh_auto_build:
 	scons $(COMMON_OPTIONS) core tools
@@ -72,6 +66,6 @@ endif
 %:
 	dh $@ --parallel --with=systemd
 
-.PHONY: override_dh_clean override_dh_auto_build \
+.PHONY: override_dh_auto_clean override_dh_auto_build \
 	override_dh_auto_install override_dh_installinit \
 	override_dh_systemd_enable override_dh_install

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



More information about the Pkg-mongodb-maintainers mailing list