X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=debian%2Frules;h=e02ea9066f39cb81dac090c504e3b7630dd639d7;hp=e4a246057f610592cd1409e8f76cc14901200b8a;hb=efba7aabcf8f5b83a35eec3c5b11b9eb4a70baf3;hpb=e3160d4cf8bd0488b74f6eedb3b9ad2af6cfa3bd diff --git a/debian/rules b/debian/rules index e4a24605..e02ea906 100755 --- a/debian/rules +++ b/debian/rules @@ -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