Commit 80cc1842 authored by Colin Watson's avatar Colin Watson

Automatically update $version at binary package build time.

parent 93471341
debmirror (1:2.29) UNRELEASED; urgency=medium
[ Stefan Kisdaroczi ]
* Add version string and --version option.
[ Colin Watson ]
* Automatically update $version at binary package build time.
-- Stefan Kisdaroczi <skisda@gmail.com> Sun, 11 Feb 2018 21:23:30 +0000
debmirror (1:2.28) unstable; urgency=medium
......
#!/usr/bin/make -f
deb_version := $(shell dpkg-parsechangelog | sed -ne "s/^Version: \(.*\)/\1/p")
%:
dh $@
override_dh_auto_install:
dh_auto_install
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