[Python-modules-commits] r32025 - in packages/citeproc-py/trunk/debian (changelog rules)
danstender-guest at users.alioth.debian.org
danstender-guest at users.alioth.debian.org
Tue Mar 17 16:02:55 UTC 2015
Date: Tuesday, March 17, 2015 @ 16:02:53
Author: danstender-guest
Revision: 32025
deb/rules: parse txt2man version and date from changelog
Modified:
packages/citeproc-py/trunk/debian/changelog
packages/citeproc-py/trunk/debian/rules
Modified: packages/citeproc-py/trunk/debian/changelog
===================================================================
--- packages/citeproc-py/trunk/debian/changelog 2015-03-17 08:24:56 UTC (rev 32024)
+++ packages/citeproc-py/trunk/debian/changelog 2015-03-17 16:02:53 UTC (rev 32025)
@@ -2,4 +2,4 @@
* Initial release (Closes: #769159).
- -- Daniel Stender <debian at danielstender.com> Fri, 16 Jan 2015 22:04:52 +0100
+ -- Daniel Stender <debian at danielstender.com> Tue, 17 Mar 2015 17:00:45 +0100
Modified: packages/citeproc-py/trunk/debian/rules
===================================================================
--- packages/citeproc-py/trunk/debian/rules 2015-03-17 08:24:56 UTC (rev 32024)
+++ packages/citeproc-py/trunk/debian/rules 2015-03-17 16:02:53 UTC (rev 32025)
@@ -2,6 +2,9 @@
#export DH_VERBOSE=1
export PYBUILD_NAME=citeproc
+VERSION := $(shell dpkg-parsechangelog --show-field Version | cut -d- -f1)
+DEBDATE := $(shell dpkg-parsechangelog --show-field Date | grep -o '[0-9]\{2\}\ [a-zA-Z]\{3\}\ [0-9]\{4\}')
+
%:
dh $@ --with python2,python3 --buildsystem=pybuild
@@ -13,7 +16,8 @@
sed -i 's/usr\/bin\/env\ python/usr\/bin\/env\ python3/' debian/python3-citeproc/usr/share/doc/python3-citeproc/examples/*py
override_dh_installman:
- txt2man -s 1 -v "citeproc-py" -t "csl_unsorted" -r "0.3.0" debian/csl_unsorted.txt > .pybuild/csl_unsorted.1
+ txt2man -s 1 -v "citeproc-py" -t "csl_unsorted" -r "$(VERSION)" \
+ -d "$(DEBDATE)" debian/csl_unsorted.txt > .pybuild/csl_unsorted.1
dh_installman -A .pybuild/csl_unsorted.1
override_dh_compress:
More information about the Python-modules-commits
mailing list