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).
This commit is contained in:
@@ -1,10 +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)
|
||||
CODENAME := stretch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user