diff options
| author | Michael Biebl <biebl@debian.org> | 2024-02-13 22:24:20 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2024-02-13 22:24:20 +0100 |
| commit | 4e0c152343821d62f79db8f047395cabc3005b8e (patch) | |
| tree | 31f8fbf3be8013dc34844ac720eb71dabbf04075 /tools | |
| parent | 0260b90a50f9c49eb216249afea08ba3f3b8981f (diff) | |
| parent | 6681f77b757bbc42ce5c8868ee9142b7ebc8c059 (diff) | |
Update upstream source from tag 'upstream/1.45.91'
Update to upstream version '1.45.91' with Debian dir bebf00e416cd984203cf3c98296e0b1f3016c889
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/meson-dist-data.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/meson-dist-data.sh b/tools/meson-dist-data.sh new file mode 100755 index 00000000..1b5d3b03 --- /dev/null +++ b/tools/meson-dist-data.sh @@ -0,0 +1,35 @@ +#!/bin/bash +set -e + +ensure_var_path() { + if [ "${!1}" = "" ]; then + echo "$0: Required variable $1 is not set, aborting" >&2 + exit 1 + fi + + if [ ! -d "${!1}" ]; then + echo "$0: Path '${!1}' in $1 does not exist or is not directory, aborting" >&2 + exit 1 + fi +} + +copy_from_build() { + cp -Tr "$MESON_BUILD_ROOT/$1" "$MESON_DIST_ROOT/$1" +} + +if [ "$MESON_BUILD_ROOT" = "" ]; then + if [ "$1" = "--build-root" ]; then + MESON_BUILD_ROOT="$2" + fi +fi + +ensure_var_path "MESON_DIST_ROOT" +ensure_var_path "MESON_BUILD_ROOT" +ensure_var_path "MESON_SOURCE_ROOT" + +ninja -C "$MESON_BUILD_ROOT" all libnm-doc NetworkManager-doc + +mkdir -p "$MESON_DIST_ROOT/docs/" +copy_from_build /docs/api/ +copy_from_build /docs/libnm/ +copy_from_build /man/ |