mirror of
https://github.com/irssi/irssi.git
synced 2026-08-23 02:22:36 +02:00
Also try links for docs generation
Haiku has links (links2) but not elinks.
This commit is contained in:
parent
5ddf127f6d
commit
a9dcfadc33
1 changed files with 2 additions and 0 deletions
|
|
@ -31,6 +31,8 @@ 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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue