aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/docs/dvi
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/helpers/build/docs/dvi')
-rwxr-xr-xresources/scripts/helpers/build/docs/dvi24
1 files changed, 24 insertions, 0 deletions
diff --git a/resources/scripts/helpers/build/docs/dvi b/resources/scripts/helpers/build/docs/dvi
new file mode 100755
index 00000000..77ae5900
--- /dev/null
+++ b/resources/scripts/helpers/build/docs/dvi
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+#
+# Libreboot documentation build script: dvi
+#
+
+echo "@set librebootbase `pwd`" > docs/constants.texi
+
+basedir="docs/manual/"
+outfile="${basedir}libreboot.dvi"
+texinfo_src="docs/libreboot.texi"
+
+[ -d docs/manual ] || mkdir docs/manual
+
+echo "Writing manual: $outfile..."
+# Options: quiet, clean (remove TeX compilation directory)
+# and expand macros using makeinfo
+texi2dvi -q -c -e -o $outfile $texinfo_src
+
+echo "Making $outfile.gz..."
+gzip -f -9 -c $outfile > $outfile.gz
+
+echo "Done."
+
+