Debian Codegraph @

build-aux/meson-build-dist-man.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`. -eu
2 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Copyright (c) Iputils Project, 2024
4 #
5 # This script should be invoked by meson itself on 'meson dist'
6 # (invoked by tools/create-tarballs.sh).
7
8 if [scip-shell system . . `[`. "${CC:-}" ]; then
9 echoscip-shell system . . echo. "$0: CC=$CC"
10 if ! $CC -dumpmachine | grepscip-shell system . . grep. $(unamescip-shell system . . uname. -m); then
11 echoscip-shell system . . echo. "$0: CC ($CC) is probably cross compile toolchain, unset it for man page generating"
12 unset CC
13 fi
14 fi
15
16 cd "$MESON_DIST_ROOT"
17 DIR=$(mktempscip-shell system . . mktemp. -d)
18
19 mesonscip-shell system . . meson. setup "$DIR" -DBUILD_MANS=true -DBUILD_HTML_MANS=true
20 mesonscip-shell system . . meson. compile -C "$DIR"
21 cpscip-shell system . . cp. -v "$DIR"/doc/* doc/
22 rmscip-shell system . . rm. -rf "$DIR"