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