You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by David McMahon <dj...@nusphere.com> on 2001/01/02 18:33:19 UTC
APXS patch for module insertion outside
Hi,
We're currently using the included patch for APXS to properly
handle adding new modules OUTSIDE the scope of an existing
<IfDefine> in the LoadModule and AddModule sections.
*** apxs.pl Mon Feb 28 15:56:07 2000
--- apxs.pl.new Thu Dec 7 14:36:02 2000
***************
*** 494,499 ****
--- 494,501 ----
my $what = $opt_A ? "preparing" : "activating";
if ($content !~ m|\n#?\s*$lmd|) {
$content =~
s|^(.*\n#?\s*LoadModule\s+[^\n]+\n)|$1$c$lmd\n|sg;
+ # move the new module definition outside of ifdefine
+ $content =~ s|(\n#?\s*$lmd)(\n</IfDefine>)\n|$2$1\n|s;
} else {
$content =~ s|^(.*\n)#?\s*$lmd[^\n]*\n|$1$c$lmd\n|sg;
}
***************
*** 504,509 ****
--- 506,513 ----
foreach $amd (@amd) {
if ($content !~ m|\n#?\s*$amd|) {
$content =~
s|^(.*\n#?\s*AddModule\s+[^\n]+\n)|$1$c$amd\n|sg;
+ # move the new module definition outside of ifdefine
+ $content =~ s|(\n#?\s*$amd)(\n</IfDefine>)\n|$2$1\n|s;
} else {
$content =~ s|^(.*\n)#?\s*$amd[^\n]*\n|$1$c$amd\n|sg;
}
Is this something you'd like to add to 1.3.15?
-dave
==============================================
David McMahon Ph: 781.280.4219
mailto:djm@nusphere.com Fax: 781.280.4646
NuSphere MySQL http://www.nusphere.com
==============================================