summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2018-06-20 19:33:49 +0300
committerSergey Kandaurov <pluknet@nginx.com>2018-06-20 19:33:49 +0300
commit50d458796180367b9e2e65884abd538f31b774de (patch)
tree338a2a6e753bd0c222588d9b8a98c7bd3ee5c56d /auto
parentb1d7844449b813f8dde73da4e11b8b2d8233f704 (diff)
downloadunit-50d458796180367b9e2e65884abd538f31b774de.tar.gz
unit-50d458796180367b9e2e65884abd538f31b774de.tar.bz2
Using portable grep features.
Diffstat (limited to '')
-rw-r--r--auto/make3
1 files changed, 2 insertions, 1 deletions
diff --git a/auto/make b/auto/make
index d909193a..60cbfe97 100644
--- a/auto/make
+++ b/auto/make
@@ -224,7 +224,8 @@ ${NXT_DAEMON}-uninstall:
END
-nxt_version=`grep -m 1 NXT_VERSION src/nxt_main.h | sed -e 's/.*"\(.*\)".*/\1/'`
+nxt_version=`grep 'define NXT_VERSION' src/nxt_main.h \
+ | sed -e 's/.*"\(.*\)".*/\1/'`
# Makefile.
# *.dSYM is MacOSX Clang debug information.