summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/docs/html
blob: e2a88978eda8759b71554edfd2eb5af4a1b10d80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh -e
#
# Libreboot documentation build script: html-by-node
#
# Note: currently the manual generated by this script does
# not display images correctly
#
# './build docs html' is short for ./build docs html-by-node
# name the output accordingly for clarity

echo "@set librebootbase `pwd`" > docs/constants.texi

basefile="`basename "$0"`-by-node"
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=node -o $outdir $texinfo_src

echo "Making $outdir.tar.gz..."
tar -czf $outdir.tar.gz $outdir

echo "Done."