summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Revol <revol@free.fr>2014-07-22 19:58:51 +0200
committerFrançois Revol <revol@free.fr>2014-07-22 19:59:29 +0200
commit103b0e22eb7a463ee22398132449a05de96cada3 (patch)
tree6f370596e65f035b5c6f42c7dd361aa6c8ca4cc9
parent7099ae0466a6003f789393f3494c28980ddb0103 (diff)
downloadirssi-103b0e22eb7a463ee22398132449a05de96cada3.zip
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...
-rwxr-xr-xautogen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index d65bdede..b0bd2159 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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