From 40385b9ab0b40ec2aa722dc9d1d1d36ad0e91f8f Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Mon, 15 Dec 2008 12:35:23 +0000 Subject: Try browsers for faq.txt generation silently. svn path=/trunk/; revision=26999 --- help/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'help/Makefile.am') diff --git a/help/Makefile.am b/help/Makefile.am index dbb3a75887..d389c6756d 100644 --- a/help/Makefile.am +++ b/help/Makefile.am @@ -44,7 +44,7 @@ MAINTAINERCLEANFILES = \ # Try our best to convert the FAQ to text. faq.txt: $(srcdir)/faq.py $(srcdir)/faq.py >$@.tmp - elinks -dump -dump-width 72 -no-numbering -no-references < $@.tmp > $@ || \ - links -width 72 -html-numbered-links 0 -dump $@.tmp > $@ || \ - lynx -dump -width=72 -nolist -stdin -force-html < $@.tmp > $@ + (( which elinks > /dev/null && elinks -dump -dump-width 72 -no-numbering -no-references < $@.tmp > $@ )|| \ + ( which links > /dev/null && links -width 72 -html-numbered-links 0 -dump $@.tmp > $@ )|| \ + ( which lynx > /dev/null && lynx -dump -width=72 -nolist -stdin -force-html < $@.tmp > $@ ) ) && \ rm -f $@.tmp -- cgit v1.2.1