Remove lynx as a dependency on Windows. By default, create the FAQ using
html2text.py. You can override this by adjusting config.nmake or by setting HTML2TXT. svn path=/trunk/; revision=27041
This commit is contained in:
parent
f49377e0e7
commit
c9c32db187
|
@ -644,6 +644,11 @@ doxygen-run:
|
|||
|
||||
doxygen: doxygen.cfg doxygen-run
|
||||
|
||||
help\faq.txt:
|
||||
cd help
|
||||
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake faq.txt
|
||||
cd ..
|
||||
|
||||
FAQ: help\faq.txt
|
||||
cp --preserve $? $@
|
||||
|
||||
|
@ -668,7 +673,6 @@ REQUIRED_TOOLS=\
|
|||
$(YACC) \
|
||||
$(LEX) \
|
||||
env \
|
||||
lynx \
|
||||
grep \
|
||||
/usr/bin/find \
|
||||
$(PERL) \
|
||||
|
|
14
config.nmake
14
config.nmake
|
@ -43,6 +43,13 @@ WIRESHARK_LIBS=C:\wireshark-$(PLATFORM)-libs
|
|||
#
|
||||
PROGRAM_FILES=$(PROGRAMFILES)
|
||||
|
||||
#
|
||||
# Location of the "tools" directory. This affects HTML2TXT below and should
|
||||
# be overridden by makefiles in any subdirectories that use HTML2TXT.
|
||||
!IFNDEF TOOLS_DIR
|
||||
TOOLS_DIR=tools
|
||||
!ENDIF
|
||||
|
||||
#
|
||||
# Machine type for the compiler and linker
|
||||
# TARGET_MACHINE (Used for link /MACHINE) should be one of "X86" or "X64"
|
||||
|
@ -579,8 +586,11 @@ HHC_EXE="$(HHC_DIR)\hhc.exe"
|
|||
# (cygwin: lynx works, elinks not available, links and true doesn't produce output)
|
||||
#HTML2TXT=elinks -dump -dump-width 72
|
||||
#HTML2TXT=links -dump -width 72
|
||||
HTML2TXT=lynx -dump -width=72 -nolist -stdin
|
||||
#HTML2TXT="true"
|
||||
#HTML2TXT=lynx -dump -width=72 -nolist -stdin
|
||||
|
||||
!IFNDEF HTML2TXT
|
||||
HTML2TXT=$(PYTHON) $(TOOLS_DIR)\html2text.py --width=72 --no-links
|
||||
!ENDIF
|
||||
|
||||
# the XSL processor (part of cygwin's libxslt package)
|
||||
XSLTPROC="xsltproc"
|
||||
|
|
|
@ -3,12 +3,15 @@
|
|||
#
|
||||
# $Id$
|
||||
|
||||
TOOLS_DIR=..\tools
|
||||
include ..\config.nmake
|
||||
|
||||
############### no need to modify below this line #########
|
||||
|
||||
all: faq.txt
|
||||
|
||||
faq.txt: faq.py
|
||||
$(PYTHON) faq.py | lynx -dump -width=72 -nolist -stdin -force-html > $@
|
||||
$(PYTHON) faq.py | $(HTML2TXT) > $@
|
||||
|
||||
clean:
|
||||
rm -rf faq.txt
|
||||
|
|
Loading…
Reference in New Issue