mirror of
https://github.com/nginx/nginx.git
synced 2024-12-27 17:31:35 -06:00
Simplified nginx version maintenance.
It's no longer necessary to update src/http/modules/perl/nginx.pm when version is bumped, as it's now derived from src/core/nginx.h.
This commit is contained in:
parent
50be2f3f45
commit
a861b0dbb1
@ -3,6 +3,9 @@
|
|||||||
# Copyright (C) Nginx, Inc.
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
|
v=`grep 'define NGINX_VERSION' src/core/nginx.h | sed -e 's/^.*"\(.*\)".*/\1/'`
|
||||||
|
|
||||||
|
|
||||||
cat << END >> $NGX_MAKEFILE
|
cat << END >> $NGX_MAKEFILE
|
||||||
|
|
||||||
$NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.$ngx_perl_dlext: \\
|
$NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.$ngx_perl_dlext: \\
|
||||||
@ -15,11 +18,14 @@ $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.$ngx_perl_dlext: \\
|
|||||||
|
|
||||||
|
|
||||||
$NGX_OBJS/src/http/modules/perl/Makefile: \\
|
$NGX_OBJS/src/http/modules/perl/Makefile: \\
|
||||||
|
src/core/nginx.h \\
|
||||||
src/http/modules/perl/Makefile.PL \\
|
src/http/modules/perl/Makefile.PL \\
|
||||||
src/http/modules/perl/nginx.pm \\
|
src/http/modules/perl/nginx.pm \\
|
||||||
src/http/modules/perl/nginx.xs \\
|
src/http/modules/perl/nginx.xs \\
|
||||||
src/http/modules/perl/typemap
|
src/http/modules/perl/typemap
|
||||||
cp -p src/http/modules/perl/nginx.* $NGX_OBJS/src/http/modules/perl/
|
sed "s/%%VERSION%%/$v/" 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/
|
cp -p src/http/modules/perl/typemap $NGX_OBJS/src/http/modules/perl/
|
||||||
cp -p src/http/modules/perl/Makefile.PL $NGX_OBJS/src/http/modules/perl/
|
cp -p src/http/modules/perl/Makefile.PL $NGX_OBJS/src/http/modules/perl/
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ our @EXPORT = qw(
|
|||||||
HTTP_INSUFFICIENT_STORAGE
|
HTTP_INSUFFICIENT_STORAGE
|
||||||
);
|
);
|
||||||
|
|
||||||
our $VERSION = '1.3.16';
|
our $VERSION = '%%VERSION%%';
|
||||||
|
|
||||||
require XSLoader;
|
require XSLoader;
|
||||||
XSLoader::load('nginx', $VERSION);
|
XSLoader::load('nginx', $VERSION);
|
||||||
|
Loading…
Reference in New Issue
Block a user