The previous patch was wrong. Attached below is the correct one. Sorry.
--
Rafael
diff -u quilt-0.46/debian/changelog quilt-0.46/debian/changelog
--- quilt-0.46/debian/changelog
+++ quilt-0.46/debian/changelog
@@ -1,3 +1,10 @@
+quilt (0.46-4.1) UNRELEASED; urgency=low
+
+ * debian/rules: filter \sh{.*} constructs in the hevea output, such that
+ HTML documentation is more readable
+
+ -- Rafael Laboissiere <[EMAIL PROTECTED]> Tue, 18 Mar 2008 11:06:47 +0100
+
quilt (0.46-4) unstable; urgency=low
* Really remove the depend on gawk, sorry (only build-depend was
diff -u quilt-0.46/debian/rules quilt-0.46/debian/rules
--- quilt-0.46/debian/rules
+++ quilt-0.46/debian/rules
@@ -24,7 +24,8 @@
common-build-indep::
mkdir doc/tmp || true
cd doc/tmp; LC_ALL=C hevea ../main.tex ; LC_ALL=C hevea ../main.tex; LC_ALL=C hevea ../main.tex
- cp doc/tmp/main.html doc/quilt.html
+ perl -pe 'if (/\\sh{.*}/) {s:\\sh{(.*)}:<I>$$1</I>:}' \
+ < doc/tmp/main.html > doc/quilt.html
LC_ALL=C perl -e '$$/ = undef; $$f=<>; $$f =~ s|<A[^>]*?HREF="[^"]*#[^"]*">(.*?)</A>|$$1|msg; print $$f;' < doc/tmp/main.html > doc/tmp/tmp.html
LC_ALL=C lynx doc/tmp/tmp.html -dump > doc/quilt.txt