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

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sun Aug 13 10:54:02 BST 2023



Bas Couwenberg pushed to branch master at Debian GIS Project / python-stetl


Commits:
82c82a1d by Bas Couwenberg at 2023-08-13T11:51:16+02:00
Use execute_{before,after} instead of override in rules file.

- - - - -


3 changed files:

- debian/changelog
- debian/clean
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -5,6 +5,7 @@ python-stetl (2.1-2) UNRELEASED; urgency=medium
   * Use autopkgtest-pkg-pybuild testsuite.
   * Enable Salsa CI.
   * Remove generated files in clean target.
+  * Use execute_{before,after} instead of override in rules file.
 
  -- Bas Couwenberg <sebastic at debian.org>  Wed, 18 Jan 2023 17:17:21 +0100
 


=====================================
debian/clean
=====================================
@@ -1,3 +1,4 @@
-VERSION.txt
 *-info/
+VERSION.txt
+
 debian/man/*.1


=====================================
debian/rules
=====================================
@@ -20,29 +20,24 @@ MANPAGES := $(wildcard debian/man/*.*.xml)
 		--buildsystem=pybuild \
 		--with python3,sphinxdoc
 
-override_dh_auto_clean:
-	dh_auto_clean
+execute_after_dh_auto_clean:
 	(cd docs && make clean)
 
-override_dh_auto_build:
+execute_before_dh_auto_build:
 	# Create man page from DocBook XML
 	for x in $(MANPAGES) ; do \
 	    docbook2x-man --string-param header-3="$(BUILD_DATE)" $$x ; \
 	    mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
 	done
 
-	dh_auto_build
+execute_after_dh_auto_build:
 	(cd docs && make html)
 
-override_dh_auto_install:
-	dh_auto_install
-
+execute_after_dh_auto_install:
 	# Move usr/bin/stetl to stetl package
 	mkdir -p debian/stetl/usr
 	mv debian/python3-stetl/usr/bin debian/stetl/usr
 
-override_dh_installexamples:
-	dh_installexamples
-
+execute_after_dh_installexamples:
 	# Remove executable bit
 	find debian/*/usr/share/doc/*/examples/ -type f -exec chmod 644 {} \;



View it on GitLab: https://salsa.debian.org/debian-gis-team/python-stetl/-/commit/82c82a1d7b2c9d4a1bd98d552124335470838076

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-stetl/-/commit/82c82a1d7b2c9d4a1bd98d552124335470838076
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/74e3eaf7/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list