Add a 'reformat' target, which uses tidy(1) to clean up the raw
HTML output. It is optional to use, but makes it easier to remember how this works. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
2db66508ac
commit
6c1aeec5bf
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=43375
1 changed files with 12 additions and 0 deletions
|
@ -7,8 +7,20 @@
|
|||
.include "../Makefile.inc"
|
||||
.endif
|
||||
|
||||
TIDY?= /usr/local/bin/tidy
|
||||
DOCS= schedule.xml
|
||||
|
||||
HTMLFILES= errata.html \
|
||||
hardware.html \
|
||||
readme.html \
|
||||
relnotes.html
|
||||
|
||||
DATA= docbook.css
|
||||
|
||||
.include "${DOC_PREFIX}/share/mk/web.site.mk"
|
||||
|
||||
reformat:
|
||||
.for _f in ${HTMLFILES}
|
||||
${TIDY} -preserve -omit -latin1 ${_f} > ${_f}.tmp || true
|
||||
mv ${_f}.tmp ${_f}
|
||||
.endfor
|
||||
|
|
Loading…
Reference in a new issue