aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/docs/html-one-page
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/helpers/build/docs/html-one-page')
-rwxr-xr-xresources/scripts/helpers/build/docs/html-one-page21
1 files changed, 21 insertions, 0 deletions
diff --git a/resources/scripts/helpers/build/docs/html-one-page b/resources/scripts/helpers/build/docs/html-one-page
new file mode 100755
index 00000000..7c4f0180
--- /dev/null
+++ b/resources/scripts/helpers/build/docs/html-one-page
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+#
+# Libreboot documentation build script: html-one-page
+#
+
+echo "@set librebootbase `pwd`" > docs/constants.texi
+
+basefile=`basename "$0"`
+basedir="docs/manual/"
+outfile="${basedir}libreboot_${basefile}.html"
+texinfo_src="docs/libreboot.texi"
+
+[ -d docs/manual ] || mkdir docs/manual
+
+echo "Writing manual: $outfile..."
+makeinfo --html --no-warn --no-split -o $outfile $texinfo_src
+
+echo "Making $outfile.gz..."
+gzip -f -9 -c $outfile > $outfile.gz
+
+echo "Done."