summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/docs/html-by-section
diff options
context:
space:
mode:
authorPaul Koenig <paukoen@gmail.com>2016-05-23 13:58:06 (EDT)
committer Leah Woods <info@minifree.org>2016-05-25 21:56:18 (EDT)
commitc6563ccc64050070b2c35a281c034a460dbae586 (patch)
treec9e1d788f833161e87d9f3bc22e7795d6eeaf299 /resources/scripts/helpers/build/docs/html-by-section
parent4aca93689bfff1be7a6a5a5c623af75dc6ce621a (diff)
downloadlibreboot-c6563ccc64050070b2c35a281c034a460dbae586.zip
libreboot-c6563ccc64050070b2c35a281c034a460dbae586.tar.gz
libreboot-c6563ccc64050070b2c35a281c034a460dbae586.tar.bz2
docs: build scripts
also update libreboot.texi to use absolute paths for references to images, logs, etc.
Diffstat (limited to 'resources/scripts/helpers/build/docs/html-by-section')
-rwxr-xr-xresources/scripts/helpers/build/docs/html-by-section24
1 files changed, 24 insertions, 0 deletions
diff --git a/resources/scripts/helpers/build/docs/html-by-section b/resources/scripts/helpers/build/docs/html-by-section
new file mode 100755
index 0000000..c5795c1
--- /dev/null
+++ b/resources/scripts/helpers/build/docs/html-by-section
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+#
+# Libreboot documentation build script: html-by-section
+#
+# Note: currently the manual generated by this script does
+# not display images correctly
+#
+
+echo "@set librebootbase `pwd`" > docs/constants.texi
+
+basefile=`basename "$0"`
+basedir="docs/manual/"
+outdir="${basedir}libreboot_${basefile}"
+texinfo_src="docs/libreboot.texi"
+
+[ -d docs/manual ] || mkdir docs/manual
+
+echo "Writing manual: $outdir..."
+makeinfo --html --no-warn --split=section -o $outdir $texinfo_src
+
+echo "Making $outdir.tar.gz..."
+tar -czf $outdir.tar.gz $outdir
+
+echo "Done."