summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorFrançois Revol <revol@free.fr>2014-07-22 01:38:13 +0200
committerFrançois Revol <revol@free.fr>2014-07-24 10:41:46 +0200
commit9d4ea891b91b6cf514a3c70dc68a22feafb17d8d (patch)
tree765fedfe94653bbc490a7f527b1eb2a199f9bfa4 /autogen.sh
parent103b0e22eb7a463ee22398132449a05de96cada3 (diff)
downloadirssi-9d4ea891b91b6cf514a3c70dc68a22feafb17d8d.zip
Also try links for docs generation
Haiku has links (links2) but not elinks. Links doesn't seem to generate references however, but it's the 2nd fallback so it's better than nothing.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index b0bd2159..466a5a05 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -31,6 +31,8 @@ if type lynx >/dev/null 2>&1 ; then
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