Commit 26d1a28c authored by Colin Watson's avatar Colin Watson

Use /usr/share/dpkg/pkg-info.mk rather than equivalent hand-written code.

parent f117cf9b
......@@ -2,6 +2,8 @@ debmirror (1:2.30) UNRELEASED; urgency=medium
* Make the error message when mkdir fails more helpful.
* Restart partial HTTP downloads (closes: #629922).
* Use /usr/share/dpkg/pkg-info.mk rather than equivalent hand-written
code.
-- Colin Watson <cjwatson@debian.org> Tue, 27 Feb 2018 17:07:56 +0000
......
#!/usr/bin/make -f
deb_version := $(shell dpkg-parsechangelog | sed -ne "s/^Version: \(.*\)/\1/p")
include /usr/share/dpkg/pkg-info.mk
%:
dh $@
override_dh_install:
dh_install
sed -i 's/^\(our \$$version=\).*/\1"$(deb_version)";/' \
sed -i 's/^\(our \$$version=\).*/\1"$(DEB_VERSION)";/' \
debian/debmirror/usr/bin/debmirror
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment