summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/docs/html-by-section
blob: c5795c1c7380fb18f5c4634d8a1123257b6c1552 (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
#!/bin/sh -e
#
# Libreboot documentation build script: html-by-section
#
# Note: currently the manual generated by this script does
# not display images correctly
#

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

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

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

echo "Done."