[njs] Configure: refactored NJS_VER.
Dmitry Volyntsev
xeioex at nginx.com
Thu Oct 29 12:59:58 UTC 2020
details: https://hg.nginx.org/njs/rev/ff14a0253f15
branches:
changeset: 1548:ff14a0253f15
user: Jakub Jirutka <jakub at jirutka.cz>
date: Thu Oct 22 01:51:31 2020 +0200
description:
Configure: refactored NJS_VER.
diffstat:
auto/make | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r 19d2a8d68e3a -r ff14a0253f15 auto/make
--- a/auto/make Thu Oct 29 12:46:19 2020 +0000
+++ b/auto/make Thu Oct 22 01:51:31 2020 +0200
@@ -21,6 +21,8 @@ NJS_STATIC_LINK = ${AR} -r -c
NJS_LINK = ${CC} ${NJS_LD_OPT}
NJS_CFLAGS = ${NJS_CFLAGS} ${NJS_CC_OPT} ${CFLAGS}
+NJS_VER = $(grep NJS_VERSION src/njs.h | sed -e 's/.*"\(.*\)".*/\1/')
+
default: $NJS_DEFAULT_TARGET
NJS_LIB_INCS = -Isrc -I$NJS_BUILD_DIR
@@ -241,12 +243,11 @@ ts_test: ts
tsc ./test/ts/test.ts
dist:
- NJS_VER=`grep NJS_VERSION src/njs.h | sed -e 's/.*"\(.*\)".*/\1/'`; \\
- rm -rf njs-\$\${NJS_VER} \\
- && hg archive njs-\$\${NJS_VER}.tar.gz \\
- -p njs-\$\${NJS_VER} \\
+ rm -rf njs-\$(NJS_VER) \\
+ && hg archive njs-\$(NJS_VER).tar.gz \\
+ -p njs-\$(NJS_VER) \\
-X ".hg*" \\
- && echo njs-\$\${NJS_VER}.tar.gz done
+ && echo njs-\$(NJS_VER).tar.gz done
END
More information about the nginx-devel
mailing list