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/110-sysprep.sh | |
parent | Initial commit. (diff) | |
download | inkscape-upstream.tar.xz inkscape-upstream.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/110-sysprep.sh')
-rwxr-xr-x | packaging/macos/110-sysprep.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/packaging/macos/110-sysprep.sh b/packaging/macos/110-sysprep.sh new file mode 100755 index 0000000..56bc5eb --- /dev/null +++ b/packaging/macos/110-sysprep.sh @@ -0,0 +1,40 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-2.0-or-later +# +# This file is part of the build pipeline for Inkscape on macOS. +# +# ### 110-sysprep.sh ### +# System preparation tasks. + +### 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 + +### initial information ######################################################## + +echo_info "TOOLSET_ROOT_DIR = $TOOLSET_ROOT_DIR" +echo_info "WRK_DIR = $WRK_DIR" + +### check for presence of SDK ################################################## + +if [ ! -d $SDKROOT ]; then + echo_err "SDK not found: $SDKROOT" + exit 1 +fi + +### create work directory ###################################################### + +[ ! -d $WRK_DIR ] && mkdir -p $WRK_DIR || true + +### create temporary directory ################################################# + +[ ! -d $TMP_DIR ] && mkdir -p $TMP_DIR || true + +### create binary directory ################################################# + +[ ! -d $BIN_DIR ] && mkdir -p $BIN_DIR || true + +### create toolset repository directory ######################################## + +[ ! -d $TOOLSET_REPO_DIR ] && mkdir -p $TOOLSET_REPO_DIR || true |