[Git][debian-gis-team/pycsw][master] Make ronn generated manpage renaming more robust.

Bas Couwenberg gitlab at salsa.debian.org
Tue Mar 5 11:19:02 GMT 2019


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


Commits:
068ca2de by Bas Couwenberg at 2019-03-05T11:18:55Z
Make ronn generated manpage renaming more robust.

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+pycsw (2.2.0+dfsg-7) UNRELEASED; urgency=medium
+
+  * Make ronn generated manpage renaming more robust.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Tue, 05 Mar 2019 12:14:07 +0100
+
 pycsw (2.2.0+dfsg-6) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/rules
=====================================
@@ -3,6 +3,10 @@
 
 export PYBUILD_NAME=pycsw
 
+include /usr/share/dpkg/pkg-info.mk
+
+BUILD_DATE := $(shell LC_ALL=C date -u "+%Y-%m-%d" -d "@$(SOURCE_DATE_EPOCH)")
+
 %:
 	dh  $@ --with python2,python3,sphinxdoc,apache2 --buildsystem pybuild --parallel
 
@@ -12,8 +16,10 @@ override_dh_clean:
 override_dh_auto_build:
 	dh_auto_build
 	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html # HTML generator
-	ronn debian/man/pycsw-admin.md
-	mv debian/man/pycsw-admin.md.1 debian/man/pycsw-admin.1
+	ronn -r --date="$(BUILD_DATE)" --manual=pycsw debian/man/*.md
+	for FILE in debian/man/*.md.1; do \
+		mv -v $$FILE debian/man/`basename $$FILE .md.1`.1; \
+	done
 	rm -f debian/man/*.html
 
 override_dh_auto_test:



View it on GitLab: https://salsa.debian.org/debian-gis-team/pycsw/commit/068ca2de986f329b76f2208b666ae8ed8698f492

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pycsw/commit/068ca2de986f329b76f2208b666ae8ed8698f492
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/20190305/ab1a444c/attachment-0001.html>


More information about the Pkg-grass-devel mailing list