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