Fix to make faq.txt when one or more of elinks,... don't exist

svn path=/trunk/; revision=26986
This commit is contained in:
Bill Meier 2008-12-13 15:00:11 +00:00
parent 9a411f5ddf
commit 157f478a23
1 changed files with 5 additions and 3 deletions

View File

@ -43,6 +43,8 @@ MAINTAINERCLEANFILES = \
# Try our best to convert the FAQ to text.
faq.txt: faq.py
./faq.py | elinks -dump -dump-width 72 -no-numbering -no-references > $@ || \
./faq.py | links -dump -width 72 -no-numbering -no-references > $@ || \
./faq.py | lynx -dump -width=72 -nolist -stdin -force-html > $@
./faq.py >$@.tmp
elinks -dump -dump-width 72 -no-numbering -no-references < $@.tmp > $@ || \
links -dump -width 72 -no-numbering -no-references < $@.tmp > $@ || \
lynx -dump -width=72 -nolist -stdin -force-html < $@.tmp > $@
rm -f $@.tmp