summaryrefslogtreecommitdiffstats
path: root/packaging/macos/build_toolset.sh
blob: 5bdb5aeb4d54ffdd5c10af0899b3c382c409fe6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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