summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-07-24 15:45:17 -0700
committerKevin McCarthy <kevin@8t8.us>2020-07-24 15:59:08 -0700
commitc3ae7ba55d71804ede4145a351acbac18b375993 (patch)
treefb2a9ca3437f66fa2bdb98277d73a1a710180ce8 /doc
parent62fab7bd4a6d143ed98a7fccc5bd37cfbcb012eb (diff)
Prevent lynx from dumping a remote site if manual.txt is missing.
Ambrose Li reported that if the xsltproc step fails in manual generation, lynx will dump a *remote* site to manual.txt, because manual.html does not exist. w3m and elinks appear not to have this issue. Prevent lynx from doing this by adding '-localhost' flag. Ambrose also suggested prefixing './manual.html' instead should fix the problem, but to be conservative about not breaking anything I'm just adding the '-localhost' flag.
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index aab24d30..16becc10 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -151,7 +151,7 @@ uninstall-local:
check:
manual.txt: manual.html
- -LC_ALL=C lynx -dump -nolist -with_backspaces -display_charset=us-ascii manual.html > $@ || \
+ -LC_ALL=C lynx -localhost -dump -nolist -with_backspaces -display_charset=us-ascii manual.html > $@ || \
LC_ALL=C w3m -dump manual.html > $@ || \
LC_ALL=C elinks -dump -no-numbering -no-references manual.html | sed -e 's,\\001, ,g' > $@