diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-09-11 21:10:24 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-09-11 21:10:24 +0100 |
commit | cbca47ad5bff421a432a2183c28b897acaeb4b02 (patch) | |
tree | a5c2a29ded03307e14c7d3766c1154792dfe8630 /debian | |
parent | 768ff5909deb2493f1435ed5ab93019cdd75682a (diff) |
do substition for $dgit_version in rules
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/rules | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index e4a2460..fece672 100755 --- a/debian/rules +++ b/debian/rules @@ -22,3 +22,10 @@ export prefix=/usr %: dh $@ + +override_dh_gencontrol: + dh_gencontrol + set -e; \ + cd debian/dgit; \ + v=$$(perl -ne 'print if s/^version:\s+//i' DEBIAN/control); \ + perl -i -pe "s/UNRELEASED/$$v/g if m/###substituted###/" usr/bin/dgit |