httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David McMahon" <...@nusphere.com>
Subject APXS patch for module insertion outside <IfDefine>
Date Tue, 02 Jan 2001 17:33:19 GMT


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
==============================================


Mime
View raw message