debian: Clean up documtentation removing unneeded files
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@646
270642c3-0616-0410-b53a-bc976706d245
<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>
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 \