aboutsummaryrefslogtreecommitdiff
path: root/auto/lib/perl
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2013-03-28 08:47:06 +0000
committerRuslan Ermilov <ru@nginx.com>2013-03-28 08:47:06 +0000
commita861b0dbb11a955f4957191b1ee7ee15c8e791a9 (patch)
tree1744896f30a2560edd67f08370b21e2ed21815c9 /auto/lib/perl
parent50be2f3f45e0e2a66b2916c90a0e42cf73c2e822 (diff)
downloadnginx-a861b0dbb11a955f4957191b1ee7ee15c8e791a9.tar.gz
nginx-a861b0dbb11a955f4957191b1ee7ee15c8e791a9.zip
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.
Diffstat (limited to 'auto/lib/perl')
-rw-r--r--auto/lib/perl/make8
1 files changed, 7 insertions, 1 deletions
diff --git a/auto/lib/perl/make b/auto/lib/perl/make
index 1c8f21cba..825ffe7da 100644
--- a/auto/lib/perl/make
+++ b/auto/lib/perl/make
@@ -3,6 +3,9 @@
# 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/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: \\
+ src/core/nginx.h \\
src/http/modules/perl/Makefile.PL \\
src/http/modules/perl/nginx.pm \\
src/http/modules/perl/nginx.xs \\
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/Makefile.PL $NGX_OBJS/src/http/modules/perl/