diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:29:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:29:01 +0000 |
commit | 35a96bde514a8897f6f0fcc41c5833bf63df2e2a (patch) | |
tree | 657d15a03cc46bd099fc2c6546a7a4ad43815d9f /packaging/macos/build_toolset.sh | |
parent | Initial commit. (diff) | |
download | inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.tar.xz inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.zip |
Adding upstream version 1.0.2.upstream/1.0.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/macos/build_toolset.sh')
-rwxr-xr-x | packaging/macos/build_toolset.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/packaging/macos/build_toolset.sh b/packaging/macos/build_toolset.sh new file mode 100755 index 0000000..5bdb5ae --- /dev/null +++ b/packaging/macos/build_toolset.sh @@ -0,0 +1,44 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-2.0-or-later +# +# This file is part of the build pipeline for Inkscape on macOS. +# +# ### build_toolset.sh ### +# Create JHBuild toolset with all dependencies for Inkscape. + +### load settings and functions ################################################ + +SELF_DIR=$(F=$0; while [ ! -z $(readlink $F) ] && F=$(readlink $F); \ + cd $(dirname $F); F=$(basename $F); [ -L $F ]; do :; done; echo $(pwd -P)) +for script in $SELF_DIR/0??-*.sh; do source $script; done + +set -e + +### build toolset ############################################################## + +function build +{ + echo_info building toolset in $WRK_DIR + for script in $SELF_DIR/1??-*.sh; do + $script + done +} + +### remove some files ########################################################## + +# Our way of union-mounting a writable overlay ontop of a readonly filesystem +# introduces the additional challenge that paths cannot be written to if the +# parent path has not been written to (either a bug or a limitation, IDK). +# For most of the build system we work around that by re-creating the +# complete folder structure inside the writable overlay. In some cases +# we remove the paths causing problems. + +function remove_files +{ + rm -rf $TMP_DIR/wheels +} + +### main ####################################################################### + +build +remove_files |