svn commit: r43375 - head/en_US.ISO8859-1/htdocs/releases/10.0R

Glen Barber gjb at FreeBSD.org
Tue Dec 24 00:16:47 UTC 2013


Author: gjb
Date: Tue Dec 24 00:16:46 2013
New Revision: 43375
URL: http://svnweb.freebsd.org/changeset/doc/43375

Log:
  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

Modified:
  head/en_US.ISO8859-1/htdocs/releases/10.0R/Makefile

Modified: head/en_US.ISO8859-1/htdocs/releases/10.0R/Makefile
==============================================================================
--- head/en_US.ISO8859-1/htdocs/releases/10.0R/Makefile	Tue Dec 24 00:12:42 2013	(r43374)
+++ head/en_US.ISO8859-1/htdocs/releases/10.0R/Makefile	Tue Dec 24 00:16:46 2013	(r43375)
@@ -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


More information about the svn-doc-head mailing list