mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Use elinks if lynx is not present. From Ingmar Vanhassel of Exherbo fame.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5109 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
efd60c2c51
commit
c6b3fc6fe5
10
autogen.sh
10
autogen.sh
@ -34,9 +34,15 @@ cat docs/help/in/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr
|
||||
files=`echo $files|sed 's/\.in//g'`
|
||||
cat docs/help/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/Makefile.am
|
||||
|
||||
# .html -> .txt with lynx
|
||||
# .html -> .txt with lynx or elinks
|
||||
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
|
||||
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
|
||||
else
|
||||
echo No lynx or links present
|
||||
fi
|
||||
|
||||
if test x$NOCONFIGURE = x && test -z "$*"; then
|
||||
echo "**Warning**: I am going to run \`configure' with no arguments."
|
||||
|
Loading…
Reference in New Issue
Block a user