Welcome! Log In Create A New Profile

Advanced

[nginx] Configure: detect nginx version for nginx.pm at make time.

December 16, 2016 11:56AM
details: http://hg.nginx.org/nginx/rev/53ea5694d1cc
branches:
changeset: 6848:53ea5694d1cc
user: Ruslan Ermilov <ru@nginx.com>
date: Fri Dec 16 19:54:37 2016 +0300
description:
Configure: detect nginx version for nginx.pm at make time.

diffstat:

auto/lib/perl/make | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r d72b38376092 -r 53ea5694d1cc auto/lib/perl/make
--- a/auto/lib/perl/make Fri Dec 16 18:21:55 2016 +0300
+++ b/auto/lib/perl/make Fri Dec 16 19:54:37 2016 +0300
@@ -3,9 +3,6 @@
# Copyright (C) Nginx, Inc.


-v=`grep 'define NGINX_VERSION' src/core/nginx.h | sed -e 's/^.*"\(.*\)".*/\1/'`
-
-
cat << END >> $NGX_MAKEFILE

$NGX_OBJS/src/http/modules/perl/ngx_http_perl_module.o: \\
@@ -27,7 +24,11 @@ cat << END
src/http/modules/perl/nginx.pm \\
src/http/modules/perl/nginx.xs \\
src/http/modules/perl/typemap
- sed "s/%%VERSION%%/$v/" src/http/modules/perl/nginx.pm > \\
+ grep 'define NGINX_VERSION' src/core/nginx.h \\
+ | sed -e 's/^.*"\(.*\)".*/\1/' > \\
+ $NGX_OBJS/src/http/modules/perl/version
+ sed "s/%%VERSION%%/\`cat $NGX_OBJS/src/http/modules/perl/version\`/" \\
+ src/http/modules/perl/nginx.pm > \\
$NGX_OBJS/src/http/modules/perl/nginx.pm
cp -p src/http/modules/perl/nginx.xs $NGX_OBJS/src/http/modules/perl/
cp -p src/http/modules/perl/typemap $NGX_OBJS/src/http/modules/perl/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Configure: detect nginx version for nginx.pm at make time.

ru@nginx.com 388 December 16, 2016 11:56AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 103
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready