From a861b0dbb11a955f4957191b1ee7ee15c8e791a9 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 28 Mar 2013 08:47:06 +0000 Subject: 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. --- auto/lib/perl/make | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'auto/lib/perl') 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/ -- cgit