diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-02-08 20:47:05 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-02-08 20:47:05 +0400 |
commit | 59ac3060398523ffc76b91b2ed3618ae70208f26 (patch) | |
tree | 7d1e35f4a826d2c1625b0c8b690e9304268a39b9 | |
parent | e23f292d2ddd4eca9eff7184483bb142187e2c43 (diff) | |
download | illumos-source-59ac3060398523ffc76b91b2ed3618ae70208f26.tar.gz |
Get version from changelog
-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 |