[patch] Using elinks to generate docs

Kevin Sonney <[email protected]> 09 May 2003 09:23:58 -0400
Newsgroups gmane.network.irc.irssi.devel
Organization Red Hat, Inc
Message-ID <[email protected]>
lynx is no longer included in Red Hat Linux distributions. It has been
superseded by links. The attached patch will test for links, and use
that for documentation generation. If links i not found, lynx will be
used instead.

This is also used in the SRPM available at
ftp://people.redhat.com/ksonney/SRPMS

-- 
------------------------------------------
-- Kevin Sonney - Inside Sales Engineer --
--  Red Hat, Inc - 919.754.3700 x44112  --
--  [email protected] - AIM: ksonney   --
------------------------------------------
1024D/EB74 3C54 0260 6A01 705A  6F3F CD3B BAF1 4EB9 55BC
 Reality is that which, when you stop believing in it, doesn't go away
 -- Philip K. Dick
irssi-browserfix.patch (text/plain, 738 B)
--- irssi-0.8.6.CVS/autogen.sh	2002-08-14 15:10:02.000000000 -0400
+++ irssi-0.8.6.CVS-fixed/autogen.sh	2003-02-27 12:40:05.000000000 -0500
@@ -37,7 +37,12 @@
 
 # .html -> .txt with lynx
 echo "Documentation: html -> txt..."
-lynx -dump -nolist docs/faq.html|perl -pe 's/^ *//; if ($_ eq "\n" && $state eq "Q") { $_ = ""; } elsif (/^([QA]):/) { $state = $1 } elsif ($_ ne "\n") { $_ = "   $_"; };' > docs/faq.txt
+textbrowser="links"
+if test ! -f $(which $textbrowser); then
+   textbrowser="lynx"
+fi
+
+$textbrowser -dump -nolist docs/faq.html|perl -pe 's/^ *//; if ($_ eq "\n" && $state eq "Q") { $_ = ""; } elsif (/^([QA]):/) { $state = $1 } elsif ($_ ne "\n") { $_ = "   $_"; };' > docs/faq.txt
 
 echo "Checking auto* tools..."
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+u6vtzTu68U65VbwRAtQEAJ4uZuYdA6JirhcK0UMk4sFde+IG6wCgiUL5
dzgXOCH087TczyAXyul6zvM=
=6Njq
-----END PGP SIGNATURE-----