summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@0x90.dk>2014-12-16 19:47:23 +0100
committerAlexander Færøy <ahf@0x90.dk>2014-12-16 19:47:23 +0100
commitbbf84d41a48f7e76487d8a4bfd5345fc252c7d9c (patch)
tree5bf97efeda3010296a81e228f9bdcdc50b1f14f1
parent1c4495ec77265dd6c1c2c1fa7c88426fc68f5450 (diff)
parent9d4ea891b91b6cf514a3c70dc68a22feafb17d8d (diff)
downloadirssi-bbf84d41a48f7e76487d8a4bfd5345fc252c7d9c.zip
Merge pull request #107 from mmuman/lynx-references
Include references when generating FAQ with Lynx
-rwxr-xr-xautogen.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index cf4b9798..466a5a05 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -28,9 +28,11 @@ cat docs/help/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!
# .html -> .txt with lynx or elinks
echo "Documentation: html -> txt..."
if type lynx >/dev/null 2>&1 ; then
- 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
+ LC_ALL=C lynx -dump docs/faq.html|perl -pe 's/^ *//; if ($_ eq "\n" && $state eq "Q") { $_ = ""; } elsif (/^([QA]):/) { $state = $1 } elsif ($_ ne "\n") { $_ = " $_"; };' > docs/faq.txt
elif type elinks >/dev/null 2>&1 ; then
elinks -dump docs/faq.html|perl -pe 's/^ *//; if ($_ eq "\n" && $state eq "Q") { $_ = ""; } elsif (/^([QA]):/) { $state = $1 } elsif ($_ ne "\n") { $_ = " $_"; };' > docs/faq.txt
+elif type links >/dev/null 2>&1 ; then
+ links -dump docs/faq.html|perl -pe 's/^ *//; if ($_ eq "\n" && $state eq "Q") { $_ = ""; } elsif (/^([QA]):/) { $state = $1 } elsif ($_ ne "\n") { $_ = " $_"; };' > docs/faq.txt
else
echo "**Error**: No lynx or elinks present"
exit 1