From fee5774ecb52adca512151fff9e79fdfdfeac7d9 Mon Sep 17 00:00:00 2001
From: g0dil <g0dil@wiback.org>
Date: Wed, 30 Jan 2008 12:34:10 +0000
Subject: [PATCH] debian: Move documentation into 'html' subdir debian: Clean
 up documtentation removing unneeded files

---
 debian/index.html | 4 ++--
 debian/rules      | 5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/debian/index.html b/debian/index.html
index fcf4f9ea6..6260acf99 100644
--- a/debian/index.html
+++ b/debian/index.html
@@ -2,13 +2,13 @@
 <html>
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-   <meta http-equiv="refresh" content="0; URL=doc/html/index.html">
+   <meta http-equiv="refresh" content="0; URL=html/doc/html/index.html">
    <title>SENF - Simple and Extensible Network Framework</title>
 </head>
 <body>
     <h2>SENF - Simple and Extensible Network Framework</h2>
     <p>
-      <a href="doc/html/index.html">SENF Manual</a>
+      <a href="html/doc/html/index.html">SENF Manual</a>
     </p>
 </body>
 </html>
diff --git a/debian/rules b/debian/rules
index a99bd645a..911d1b80d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -78,8 +78,11 @@ build-indep-stamp: configure-stamp
 	scons fixlinks
 	scons $(destdir)/usr/include $(destdir)/usr/share/doc $(SCONS_OPTIONS) \
 		PREFIX='$(destdir)/usr' \
-		DOCINSTALLDIR='$$PREFIX/share/doc/libsenf-doc' \
+		DOCINSTALLDIR='$$PREFIX/share/doc/libsenf-doc/html' \
 		INCLUDEINSTALLDIR='$$PREFIX/include/senf' 
+#	Remove all the files not really needed from the documentation directories
+	find $(destdir)/usr/share/doc/libsenf-doc/html \
+		-type f ! -regex '.*\.\(html\|css\|png\|php\|idx\|tag\)' | xargs rm -f
 #       We need to install the example sourcecode
 	find Examples \( -name "*.hh" -o -name "*.cc" \) -printf "%P\n" | \
 		while read src; do \
-- 
GitLab