mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02: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
1 changed files with 8 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue