summaryrefslogtreecommitdiffstats
path: root/release/doc/share/sgml
diff options
context:
space:
mode:
authorsimon <simon@FreeBSD.org>2004-08-03 22:12:45 +0000
committersimon <simon@FreeBSD.org>2004-08-03 22:12:45 +0000
commitcc6a920fbfdf5037a841f9f5d54a587ffad360cd (patch)
tree201c61c13fdbfc870db0edc4181601f660590220 /release/doc/share/sgml
parente232f7c8d9781cfe8d68eed8c1f584a159d06af1 (diff)
downloadFreeBSD-src-cc6a920fbfdf5037a841f9f5d54a587ffad360cd.zip
FreeBSD-src-cc6a920fbfdf5037a841f9f5d54a587ffad360cd.tar.gz
Auto generate the device listings in the Hardware Notes based on
manual pages, to avoid duplicating work between the Hardware Notes and manual pages. Each text line in the output from the manual page parser is generated as a SGML entity, making it possible for translators to only translate lines which actually contains English text (this neat idea came from hrs). To determine which drivers are usable on which architectures the dev.archlist.txt file is used to explicitly list this. It it an imperfect solution, but the best I have been able to come up with for now. This commit converts most of the devices which has a section 4 manual page with a HARDWARE section to be the new auto generated format. Reviewed in principle by: ru, hrs, trhodes Good ideas for improvements: hrs No objections: -doc, re
Diffstat (limited to 'release/doc/share/sgml')
-rw-r--r--release/doc/share/sgml/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/release/doc/share/sgml/Makefile b/release/doc/share/sgml/Makefile
new file mode 100644
index 0000000..8592fd0
--- /dev/null
+++ b/release/doc/share/sgml/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+RELN_ROOT?= ${.CURDIR}/../..
+
+.include "${RELN_ROOT}/share/mk/doc.relnotes.mk"
+.include "${DOC_PREFIX}/share/mk/doc.project.mk"
+
+dev-auto.sgml: ${MAN4PAGES} ${ARCHLIST} ${RELN_ROOT}/share/misc/man2hwnotes.pl catalog-auto
+ ${PERL} ${RELN_ROOT}/share/misc/man2hwnotes.pl -a ${ARCHLIST} \
+ ${MAN4PAGES} > ${.TARGET}
+
+catalog-auto:
+ ${ECHO_CMD} 'PUBLIC "-//FreeBSD//ENTITIES Auto Generated Device Lists//EN"' \
+ '"dev-auto.sgml"' > ${.TARGET}
+
+all: dev-auto.sgml
OpenPOWER on IntegriCloud