forked from iputils/iputils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meson: include pre-generated man pages & HTML docs in dist tarballs
iputils is a core utility (hard to avoid on e.g. servers or small images, even) so it's handy to have a minimal set of build dependencies. Pre-generate the man pages and HTML docs and include them in the dist tarball so they can be used without installing libxslt, docbook, and friends. This is a followup to 83f011a and 72a3687. Bug: iputils#479 Bug: https://bugs.gentoo.org/908817 Bug: https://bugs.gentoo.org/920901 Signed-off-by: Sam James <sam@gentoo.org>
- Loading branch information
1 parent
c0658b1
commit 387baad
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
# This script should be invoked by meson itself (via 'meson dist') | ||
# See https://github.com/mesonbuild/meson/issues/2166 and more specifically, | ||
# https://github.com/mesonbuild/meson/issues/2166#issuecomment-629696911. | ||
set -eu | ||
|
||
cd "$MESON_DIST_ROOT" | ||
DIR=$(mktemp -d) | ||
meson setup "$DIR" -DBUILD_MANS=true -DBUILD_HTML_MANS=true | ||
meson compile -C "$DIR" | ||
cp "$DIR"/doc/* doc/ | ||
rm -rf "$DIR" |