Add an ispell-based "spellcheck" target to the doc build
infrastructure. Sponsored by: FreeBSD Mall, Inc.
This commit is contained in:
parent
403359dd43
commit
34ccdb09ce
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=16769
2 changed files with 11 additions and 0 deletions
|
@ -680,6 +680,13 @@ ${DOC}.${_curformat}.${_curcompress}:
|
|||
# Redefine them to do things before and after the files are installed,
|
||||
# respectively.
|
||||
|
||||
spellcheck:
|
||||
.for _entry in ${_docs}
|
||||
@echo "Spellcheck ${_entry}"
|
||||
@${HTML2TXT} ${HTML2TXTOPTS} ${.CURDIR}/${_entry} | ${ISPELL} ${ISPELLOPTS}
|
||||
.endfor
|
||||
|
||||
|
||||
#
|
||||
# Build a list of install-format targets to be installed. These will be
|
||||
# dependencies for the "realinstall" target.
|
||||
|
|
|
@ -75,6 +75,10 @@ LN?= /bin/ln
|
|||
MKDIR?= /bin/mkdir -p
|
||||
RM?= /bin/rm
|
||||
MV?= /bin/mv
|
||||
HTML2TXT?= ${PREFIX}/bin/w3m
|
||||
HTML2TXTOPTS?= -dump ${HTML2TXTFLAGS}
|
||||
ISPELL?= ispell
|
||||
ISPELLOPTS?= -l -p /usr/share/dict/freebsd ${ISPELLFLAGS}
|
||||
|
||||
# Image processing (contains code used by the doc.<format>.mk files, so must
|
||||
# be listed first).
|
||||
|
|
Loading…
Reference in a new issue