summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-13 20:43:12 +0200
committerGitHub <noreply@github.com>2020-05-13 20:43:12 +0200
commite5edc073c297446833764107485a3183e2957b6a (patch)
tree3bc1acef38640d6cfec3f59c60f76ae9489bb84c /debian/rules
parent439a7bbe4df5492808cd11fc34237b9d4acc093b (diff)
parent2c3e4696b3e223a9346552354a4fe40a76758555 (diff)
downloadvyos-1x-e5edc073c297446833764107485a3183e2957b6a.tar.gz
vyos-1x-e5edc073c297446833764107485a3183e2957b6a.zip
Merge pull request #406 from runborg/T2267
T2267: Versioning: Update version tag from GIT repo
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 144132389..3e408b538 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,9 @@ SERVICES_DIR := usr/libexec/vyos/services
%:
dh $@ --with python3, --with quilt
+override_dh_gencontrol:
+ dh_gencontrol -- -v$(shell (git describe --tags --long --match 'vyos/*' --dirty 2>/dev/null || echo 0.0-no.git.tag) | sed -E 's%vyos/%%' | sed -E 's%-dirty%+dirty%')
+
override_dh_auto_build:
make all