diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules index ba81070..626b694 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,12 @@ #!/usr/bin/make -f -major := 2 -minor := 10 + +DEBIAN_PATH := $(abspath $(dir $(firstword $(MAKEFILE_LIST)))) +SRC_VERSION := $(shell dpkg-parsechangelog -l$(DEBIAN_PATH)/changelog | \ + awk '/^Version:/ {sub(/[-+][^-]*/, "", $$2); print $$2}') + +major := $(firstword $(subst ., ,$(SRC_VERSION))) +minor := $(lastword $(subst ., ,$(SRC_VERSION))) url := git://github.com/illumos/illumos-gate.git |