X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=debian%2Frules;h=fe5dd4c3d86dac86bf5ce0872ac53f889eb67531;hp=e4a246057f610592cd1409e8f76cc14901200b8a;hb=1868619ffd6277eb01d676f816cba61b52083927;hpb=e3160d4cf8bd0488b74f6eedb3b9ad2af6cfa3bd diff --git a/debian/rules b/debian/rules index e4a24605..fe5dd4c3 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,7 @@ # dgit # Integration between git and Debian-style archives # -# Copyright (C)2013 Ian Jackson +# Copyright (C)2013-2015 Ian Jackson # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -22,3 +22,14 @@ 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 + +override_dh_auto_install: + make install prefix=/usr DESTDIR=debian/dgit + make install-infra prefix=/usr DESTDIR=debian/dgit-infrastructure