[aribas] 01/07: rewrite d/rules using dh

Ralf Treinen treinen at moszumanska.debian.org
Fri Dec 9 18:08:54 UTC 2016


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

treinen pushed a commit to branch master
in repository aribas.

commit 1919eefe13e97e88cd94e5065f3466ffd94ea4b8
Author: Ralf Treinen <treinen at free.fr>
Date:   Thu Dec 8 23:01:15 2016 +0100

    rewrite d/rules using dh
---
 debian/changelog |  3 ++-
 debian/rules     | 50 ++++++--------------------------------------------
 2 files changed, 8 insertions(+), 45 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8151960..88feb30 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,8 +7,9 @@ aribas (1.64-6) UNRELEASED; urgency=low
   * Rewrote debian/rules:
     - added debian/aribas.examples
     - added debian/aribas.manpages
+  * Rewrote debian/rules, using dh
 
- -- Ralf Treinen <treinen at debian.org>  Wed, 07 Dec 2016 09:06:03 +0100
+ -- Ralf Treinen <treinen at debian.org>  Thu, 08 Dec 2016 23:00:45 +0100
 
 aribas (1.64-5) unstable; urgency=low
 
diff --git a/debian/rules b/debian/rules
index bcbf59e..3b23a2a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,17 +1,9 @@
 #!/usr/bin/make -f
-# debian/rules for aribas
 
-#export DH_VERBOSE=1
+%:
+	dh $@
 
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	OPTFLAGS=-O0 
-else	
-	OPTFLAGS=-O
-endif	
-
-build: build-stamp 
-
-build-stamp:
+override_dh_auto_build:
 	if [ "$(DEB_BUILD_ARCH)" = "i386" ];\
 	then \
 		cp src/LINUX/arito386.S src;\
@@ -27,40 +19,10 @@ build-stamp:
 			CC=gcc\
 			CFLAGS="$(OPTFLAGS) $$EXTRAFLAGS"\
 			ASSOBJECTS="$$ASSOBJECTS"
-	touch build-stamp
 
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp
+override_dh_auto_clean:
 	cd src; make clean; rm -f aribas arito386.S
-	dh_clean
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-	dh_install
+	dh_auto_clean
 
-binary-indep: build install
-
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs
-	dh_installexamples
-	dh_installemacsen
-	dh_installman
+override_dh_installchangelogs:
 	dh_installchangelogs CHANGES*.txt
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/aribas.git



More information about the debian-science-commits mailing list