summaryrefslogtreecommitdiff
path: root/src/buildstream/data/build-all.sh.in
blob: bf5c9f880166eee53326228269623cff71e37aa9 (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
#!/bin/sh
#
# DO NOT EDIT THIS FILE
#
# This is a build script generated by
# [BuildStream](https://wiki.gnome.org/Projects/BuildStream/).
#
# Builds all given modules using their respective scripts.

set -eu

echo "Buildstream native bootstrap script"

export PATH='/usr/bin:/usr/sbin/:/sbin:/bin:/tools/bin:/tools/sbin'
export SRCDIR='./source'

SUCCESS=false
CURRENT_MODULE='None'

echo 'Setting up build environment...'

except() {{
    if [ "$SUCCESS" = true ]; then
        echo "Done!"
    else
        echo "Error building module ${{CURRENT_MODULE}}."
    fi
}}
trap "except" EXIT

for module in {modules}; do
    CURRENT_MODULE="$module"
    "$SRCDIR/build-$module"

    if [ -e /sbin/ldconfig ]; then
        /sbin/ldconfig || true;
    fi
done

SUCCESS=true