Cleanup html docs using dpatch master
authorEmmanuel Lacour <elacour@home-dn.net>
Sat, 21 Nov 2009 00:50:03 +0000 (01:50 +0100)
committerEmmanuel Lacour <elacour@home-dn.net>
Sat, 21 Nov 2009 00:50:03 +0000 (01:50 +0100)
debian/control
debian/patches/00list [new file with mode: 0644]
debian/patches/01_doc-cleanup.dpatch [new file with mode: 0755]
debian/rules

index a84cf17..0f814d1 100644 (file)
@@ -2,7 +2,7 @@ Source: mod-proxy-html
 Section: web
 Priority: optional
 Maintainer: Emmanuel Lacour <elacour@home-dn.net>
 Section: web
 Priority: optional
 Maintainer: Emmanuel Lacour <elacour@home-dn.net>
-Build-Depends: debhelper (>= 4.0.0), apache2-prefork-dev (>> 2.2), libxml2-dev (>> 2.5.10), libapache2-mod-xml2enc-dev
+Build-Depends: debhelper (>= 4.0.0), apache2-prefork-dev (>> 2.2), libxml2-dev (>> 2.5.10), libapache2-mod-xml2enc-dev, dpatch
 Standards-Version: 3.8.0
 
 Package: libapache2-mod-proxy-html
 Standards-Version: 3.8.0
 
 Package: libapache2-mod-proxy-html
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644 (file)
index 0000000..7497563
--- /dev/null
@@ -0,0 +1 @@
+01_doc-cleanup.dpatch
diff --git a/debian/patches/01_doc-cleanup.dpatch b/debian/patches/01_doc-cleanup.dpatch
new file mode 100755 (executable)
index 0000000..157e93f
--- /dev/null
@@ -0,0 +1,54 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_doc-cleanup.dpatch by <elacour@home-dn.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Remove useless banner in html docs
+
+--- ./config.html
++++ ./config.html
+@@ -234,12 +234,4 @@ in a proxy or when the contents are not HTML.  This can be overridden
+ (at your own risk) by setting the environment variable
+ <tt>PROXY_HTML_FORCE</tt> (e.g. with the <tt>SetEnv</tt> directive).</p>
+ </div>
+-<div id="navbar"><a class="internal" href="./" title="Up">Up</a>
+-*
+-<a class="internal" href="/" title="WebThing Apache Centre">Home</a>
+-*
+-<a class="internal" href="/contact.html" title="Contact WebThing">Contact</a>
+-*
+-<a class="external" href="http://www.webthing.com/" title="WebThing Ltd">Web&#222;ing</a>
+-*
+-<a class="external" href="http://www.apache.org/" title="Apache Software Foundation">Apache</a></div></body></html>
++</body></html>
+--- ./faq.html
++++ ./faq.html
+@@ -80,12 +80,4 @@ support nonstandard HTML variants, follow the instructions in
+ </dd>
+ </dl>
+ </div>
+-<div id="navbar"><a class="internal" href="./" title="Up">Up</a>
+-*
+-<a class="internal" href="/" title="WebThing Apache Centre">Home</a>
+-*
+-<a class="internal" href="/contact.html" title="Contact WebThing">Contact</a>
+-*
+-<a class="external" href="http://www.webthing.com/" title="WebThing Ltd">Web&#222;ing</a>
+-*
+-<a class="external" href="http://www.apache.org/" title="Apache Software Foundation">Apache</a></div></body></html>
++</body></html>
+--- ./guide.html
++++ ./guide.html
+@@ -219,12 +219,4 @@ and after, and possibly in the middle of, a page.  To work around this, set the
+ <code>force-response-1.0</code> environment variable in httpd.conf.
+ For example,<br /><code>BrowserMatch MSIE force-response-1.0</code></p>
+ </div>
+-<div id="navbar"><a class="internal" href="./" title="Up">Up</a>
+-*
+-<a class="internal" href="/" title="WebThing Apache Centre">Home</a>
+-*
+-<a class="internal" href="/contact.html" title="Contact WebThing">Contact</a>
+-*
+-<a class="external" href="http://www.webthing.com/" title="WebThing Ltd">Web&#222;ing</a>
+-*
+-<a class="external" href="http://www.apache.org/" title="Apache Software Foundation">Apache</a></div></body></html>
++</body></html>
index 77e7b6f..743e180 100755 (executable)
@@ -9,9 +9,12 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+patch:
+       dpatch apply-all
+
 build: build-stamp
 
 build: build-stamp
 
-build-stamp:
+build-stamp: patch
        dh_testdir
        apxs2 -c -I/usr/include/libxml2 mod_proxy_html.c
        touch build-stamp
        dh_testdir
        apxs2 -c -I/usr/include/libxml2 mod_proxy_html.c
        touch build-stamp
@@ -22,6 +25,8 @@ clean:
        rm -f build-stamp mod_proxy_html.la  mod_proxy_html.lo  mod_proxy_html.o  mod_proxy_html.slo
        rm -rf .libs
        dh_clean 
        rm -f build-stamp mod_proxy_html.la  mod_proxy_html.lo  mod_proxy_html.o  mod_proxy_html.slo
        rm -rf .libs
        dh_clean 
+       dpatch deapply-all
+       rm -rf debian/patched
 
 install: build
        dh_testdir
 
 install: build
        dh_testdir
@@ -49,4 +54,4 @@ binary-arch: build install
        dh_builddeb
 
 binary: binary-arch
        dh_builddeb
 
 binary: binary-arch
-.PHONY: build clean binary-arch binary-indep binary install
+.PHONY: build clean binary-arch binary-indep binary install patch