mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Force default locale when calling lynx
Else it ends up saying "Références" or other translation for the word. Might want to do the same for elinks...
This commit is contained in:
parent
7099ae0466
commit
103b0e22eb
@ -28,7 +28,7 @@ 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 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
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user