override index: add deps and exclude from all-modules list

git-svn-id: https://svn.apache.org/repos/asf/httpd/docs-build/trunk@1793940 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/deps.xml b/deps.xml
index cfd2605..c50273e 100644
--- a/deps.xml
+++ b/deps.xml
@@ -65,6 +65,7 @@
         <targetfileset dir="../"
                   includes="mod/index${outputext.@{lang}}
                             mod/directives${outputext.@{lang}}
+                            mod/overrides${outputext.@{lang}}
                             mod/quickreference${outputext.@{lang}}
                             sitemap${outputext.@{lang}}"
                   excludes="${ap.noxml.@{lang}}" />
@@ -79,6 +80,7 @@
         <targetfileset dir="../"
                   includes="mod/index${outputext.@{lang}}
                             mod/directives${outputext.@{lang}}
+                            mod/overrides${outputext.@{lang}}
                             mod/quickreference${outputext.@{lang}}
                             sitemap${outputext.@{lang}}"
                   excludes="${ap.noxml.@{lang}}" />
@@ -130,6 +132,15 @@
                   excludes="${ap.noxml.@{lang}}" />
     </dependset>
 
+    <!-- override index -->
+    <dependset>
+        <srcfileset    dir="../style/xsl"
+                  includes="overrideindex.xsl" />
+        <targetfileset dir="../"
+                  includes="mod/overrides${outputext.@{lang}}"
+                  excludes="${ap.noxml.@{lang}}" />
+    </dependset>
+
     <!-- index page -->
     <dependset>
         <srcfileset    dir="../style/xsl"
@@ -200,6 +211,7 @@
                   excludes="mod/*-dict${outputext.@{lang}}
                             mod/index${outputext.@{lang}}
                             mod/directives${outputext.@{lang}}
+                            mod/overrides${outputext.@{lang}}
                             mod/quickreference${outputext.@{lang}}
                             ${ap.noxml.@{lang}}" />
     </dependset>
diff --git a/lib/allmodules.pl b/lib/allmodules.pl
index 7957841..a4ea43d 100644
--- a/lib/allmodules.pl
+++ b/lib/allmodules.pl
@@ -65,12 +65,12 @@
 closedir(DIR)
     or die "could not close directory '$curpath' ($!), stopped";
 
-push @suffix => map { s/^(?:index|directives|quickreference)\.xml//; $_ }
-       grep /^(?:index|directives|quickreference)\.xml/
+push @suffix => map { s/^(?:index|directives|quickreference|overrides)\.xml//; $_ }
+       grep /^(?:index|directives|quickreference|overrides)\.xml/
     => @{[ @mod_files ]}; # copy, because $_ will be modified inline
 
 # keep only real module files in @mod_files
-@mod_files = grep !/^(?:index|directives|quickreference)\.xml/
+@mod_files = grep !/^(?:index|directives|quickreference|overrides)\.xml/
     => grep !/-dict\.xml/
     => grep !/^allmodules\.xml/
     => @mod_files;