[Git][debian-gis-team/snaphu][master] Use execute_{before,after} instead of override in rules file.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sun Aug 13 16:23:45 BST 2023



Bas Couwenberg pushed to branch master at Debian GIS Project / snaphu


Commits:
fec1edb5 by Bas Couwenberg at 2023-08-13T17:22:07+02:00
Use execute_{before,after} instead of override in rules file.

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+snaphu (2.0.6-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Use execute_{before,after} instead of override in rules file.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sun, 13 Aug 2023 17:21:55 +0200
+
 snaphu (2.0.6-1) unstable; urgency=medium
 
   [ Antonio Valentino ]


=====================================
debian/rules
=====================================
@@ -8,24 +8,20 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
-DH_OPTIONS=--sourcedirectory=src
-
 %:
-	dh $@
+	dh $@ --sourcedirectory=src
+
+execute_after_dh_auto_clean:
+	$(MAKE) -C src clobber
+	rm -rf bin/*
 
-override_dh_auto_build:
+execute_before_dh_auto_build:
 	mkdir -p bin
-	dh_auto_build --sourcedirectory=src
 
 override_dh_auto_install:
-	dh_auto_install --sourcedirectory=src -- INSTALLDIR=../debian/snaphu/usr/bin/ MANDIR=../debian/snaphu/usr/share/man
+	dh_auto_install -- \
+		INSTALLDIR=../debian/snaphu/usr/bin/ \
+		MANDIR=../debian/snaphu/usr/share/man
 
 override_dh_installchangelogs:
 	dh_installchangelogs -k README_releasenotes.txt
-
-override_dh_auto_clean:
-	dh_auto_clean --sourcedirectory=src
-	$(MAKE) -C src clobber
-	rm -rf bin/*
-
-.PHONY: override_dh_auto_build override_dh_auto_install override_dh_auto_clean



View it on GitLab: https://salsa.debian.org/debian-gis-team/snaphu/-/commit/fec1edb57e3660c6ce0d011a6c304321a49983a5

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/snaphu/-/commit/fec1edb57e3660c6ce0d011a6c304321a49983a5
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20230813/55ac7a7d/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list