summaryrefslogtreecommitdiffhomepage
path: root/auto/make
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-10-20 17:52:04 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-10-20 17:52:04 +0300
commit9f9a708ed1a79ee435208604946355a610dcb395 (patch)
treed06e38ef4d7e0a759ddeae83ce55713a4373bd7a /auto/make
parent2837d520bb16ea0836d4022fbf439af0da469d2f (diff)
downloadunit-9f9a708ed1a79ee435208604946355a610dcb395.tar.gz
unit-9f9a708ed1a79ee435208604946355a610dcb395.tar.bz2
Using the single source of Unit version.
Diffstat (limited to '')
-rw-r--r--auto/make3
1 files changed, 2 insertions, 1 deletions
diff --git a/auto/make b/auto/make
index f0241e5e..b077912d 100644
--- a/auto/make
+++ b/auto/make
@@ -234,13 +234,14 @@ ${NXT_DAEMON}-uninstall:
END
+nxt_version=`grep NXT_VERSION src/nxt_main.h | sed -e 's/.*"\(.*\)".*/\1/'`
# Makefile.
# *.dSYM is MacOSX Clang debug information.
cat << END > Makefile
-NXT_VERSION = 0.3
+NXT_VERSION = $nxt_version
include $NXT_MAKEFILE