]> git.kaiwu.me - nginx.git/commitdiff
Configure: unified nginx version computation constructs.
authorRuslan Ermilov <ru@nginx.com>
Thu, 28 Mar 2013 08:47:25 +0000 (08:47 +0000)
committerRuslan Ermilov <ru@nginx.com>
Thu, 28 Mar 2013 08:47:25 +0000 (08:47 +0000)
docs/GNUmakefile
misc/GNUmakefile

index 7c72b91712c22b59cc64a70ff1cb0690b3735357..cfa02899809ebe7b96fbcc8b310de66ebf679393 100644 (file)
@@ -1,6 +1,6 @@
 
 VER=   $(shell grep 'define NGINX_VERSION' src/core/nginx.h            \
-               | sed -e 's/^.*\"\(.*\)\"/\1/')
+               | sed -e 's/^.*"\(.*\)".*/\1/')
 NGINX= nginx-$(VER)
 TEMP=  tmp
 CP=    $(HOME)/java
index 37356965047e7039906195713dbcec414bed396c..31fe24cea49702066e0caa2a36ca9c51789ae5ec 100644 (file)
@@ -1,6 +1,6 @@
 
 VER =          $(shell grep 'define NGINX_VERSION' src/core/nginx.h    \
-                       | sed -e 's/^.*\"\(.*\)\"/\1/')
+                       | sed -e 's/^.*"\(.*\)".*/\1/')
 NGINX =                nginx-$(VER)
 TEMP =         tmp
 REPO =         $(shell svn info | sed -n 's/^Repository Root: //p')