retitle 307732 HTML documentation is not viewable
tags 307732 +patch
quit
> Most of the html files in the liboop-doc package don't end with
> 'html', which means that they can't be viewed with 'w3m', 'links', or
> 'lynx'. Apparently they *do* end with html in the cvs repository...
They don't work in Firefox either.
The patch below fixes the docs up at build time.
ttfn/rjk
diff -ruN liboop-1.0.orig/debian/fixdocs liboop-1.0/debian/fixdocs
--- liboop-1.0.orig/debian/fixdocs 1970-01-01 01:00:00.000000000 +0100
+++ liboop-1.0/debian/fixdocs 2006-10-07 10:24:47.915794046 +0100
@@ -0,0 +1,42 @@
+#! /bin/bash
+#
+# The Liboop documentation in the shipped tarball for some reason lacks
+# the .html suffixes, which makes it useless unless you have liboop.org's
+# unusual configuration. Therefore for more vanilla systems we must fix
+# it up.
+#
+# (c) 2006 Richard Kettlewell. This file may be used, distributed,
+# modified, etc under the same terms as Liboop or its documentation.
+# The specific intent is that it can always accompany any legitimate
+# version of Liboop without anyone having to worry about licensing
+# terms.
+
+# Bail out on errors
+set -e
+
+cd "$1"
+
+echo Fixing up documentation...
+
+# Rename HTML files to have the right extension
+for path in *; do
+ case $path in
+ *.* )
+ :
+ ;;
+ * )
+ echo "+ Renaming $path"
+ mv $path $path.html
+ path=$path.html
+ ;;
+ esac
+ case $path in
+ *.html )
+ echo "+ Perling $path"
+ perl -pe 's/(href=\"[a-z0-9_]+)(\#[a-z0-9_]+)?\"/$1.html$2\"/g' \
+ <$path >$path.new;
+ mv $path.new $path
+ esac
+done
+
+echo Done
diff -ruN liboop-1.0.orig/debian/rules liboop-1.0/debian/rules
--- liboop-1.0.orig/debian/rules 2006-10-07 10:28:20.126332865 +0100
+++ liboop-1.0/debian/rules 2006-10-07 10:24:55.626232334 +0100
@@ -126,6 +126,7 @@
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
$(MAKE) -C liboop.org install \
DESTDIR=$(CURDIR)/debian/tmp/usr/share/doc/liboop-doc/html
+ debian/fixdocs $(CURDIR)/debian/tmp/usr/share/doc/liboop-doc/html
binary-indep:
# Nothing to do
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]