diff options
author | Alexander Borisov <alexander.borisov@nginx.com> | 2019-02-22 16:31:44 +0300 |
---|---|---|
committer | Alexander Borisov <alexander.borisov@nginx.com> | 2019-02-22 16:31:44 +0300 |
commit | 608e09e9def182756e2f1650c6f3416b209fbf58 (patch) | |
tree | b56e435fd0cb36dc2233ee0b843f13f2fcfa9ff1 /pkg/rpm | |
parent | c96b2baca50fe2f5c17f96406e6d741e88267921 (diff) | |
download | unit-608e09e9def182756e2f1650c6f3416b209fbf58.tar.gz unit-608e09e9def182756e2f1650c6f3416b209fbf58.tar.bz2 |
Improvement and unification of version processing in build scripts.
This also eliminates expressions that incompatible with BSD make, thus fixing
installation of Node.js module on FreeBSD (broken by dace60fc4926).
Diffstat (limited to 'pkg/rpm')
-rw-r--r-- | pkg/rpm/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile index fdc31302..2157e808 100644 --- a/pkg/rpm/Makefile +++ b/pkg/rpm/Makefile @@ -1,11 +1,10 @@ #!/usr/bin/make -DEFAULT_VERSION := $(shell grep 'define NXT_VERSION' ../../src/nxt_main.h \ - | sed -e 's/^.*"\(.*\)".*/\1/') +include ../../version DEFAULT_RELEASE := 1 -VERSION ?= $(DEFAULT_VERSION) +VERSION ?= $(NXT_VERSION) RELEASE ?= $(DEFAULT_RELEASE) ifeq ($(shell rpm --eval "%{?rhel}"), 6) |