[mb2md] 21/30: Finally switch to a dh7 style debian/rules file

Axel Beckert abe at deuxchevaux.org
Wed Oct 16 21:56:29 UTC 2013


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

abe pushed a commit to branch master
in repository mb2md.

commit 9f8eceefb651f3ce07d9eaf9c2acdd89e1e67432
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Wed Oct 16 16:40:38 2013 +0200

    Finally switch to a dh7 style debian/rules file
---
 debian/changelog |    1 +
 debian/rules     |   61 +++---------------------------------------------------
 2 files changed, 4 insertions(+), 58 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 984520a..5241e15 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,7 @@ mb2md (3.20-5) UNRELEASED; urgency=low
     + Use debian/manpages instead of dh_installman parameters
     + Use dh_install and debian/install (with dh-exec, build-dependency
       added) instead of calling cp manually.
+    + Finally switch to a dh7 style debian/rules file.
   * Fix further lintian warnings:
     + description-possibly-contains-homepage and no-homepage-field
 
diff --git a/debian/rules b/debian/rules
index bde7509..758f0d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,64 +1,9 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	# Add here commands to configure the package.
-
-	touch configure-stamp
-
-
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp: configure-stamp 
-	dh_testdir
+%:
+	dh $@
 
-	# Add here commands to compile the package.
+override_dh_auto_build:
 	/usr/bin/docbook-to-man debian/mb2md.sgml > debian/mb2md.1
-
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-
-	# Add here commands to clean up after the build process.
-	dh_clean
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-
-	# Add here commands to install the package into debian/mb2md.
-	dh_install
-
-
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs 
-	dh_installdocs
-	dh_installman
-	dh_link
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure

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



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