| #!/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 |