1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

mkdist: build documentation unless -d given

The documentation has version numbers in a few places and it's easier
to get those right this way than by building it elsewhere before
running mkdist.  This change slows down mkdist but ccache can mitigate
some of that and snapshots use prebuilt documentation anyway.
This commit is contained in:
Kalle Olavi Niemitalo 2008-06-30 19:41:14 +03:00 committed by Kalle Olavi Niemitalo
parent 6e3011b29a
commit 2338d9124a

View File

@ -114,7 +114,9 @@ printf "%s\n" "$commit" > "$tmpdir/elinks/.git/HEAD"
./autogen.sh
mkdir build
cd build
../configure
# Enable lots of features so that their options will appear in elinks
# --config-help and doc/html/elinks.conf.5.html.
../configure --enable-bittorrent --enable-cgi --enable-fsp --enable-nntp
make -C po
mv po/*.gmo ../po/
mv contrib/elinks.spec ../contrib/
@ -125,6 +127,11 @@ if [ -n "$docdir" ]; then
cp -r -- "$docdir"/*.html* "$tmpdir/elinks/doc/html/"
# mkdir doc/pdf
# cp "$docdir"/*.pdf doc/pdf
else
make -C "$tmpdir/elinks/build"
make -C "$tmpdir/elinks/build/doc" html
mkdir -- "$tmpdir/elinks/doc/html"
mv -- "$tmpdir/elinks/build/doc"/*.html* "$tmpdir/elinks/doc/html/"
fi
rm -rf -- "$tmpdir/elinks/build"