123456789101112131415161718192021222324252627282930313233 |
- #!/bin/bash
- set -xe
- export RAW_CFLAGS="$CFLAGS"
- export RAW_CXXFLAGS="$CXXFLAGS"
- export RAW_LDFLAGS="$LDFLAGS"
- [[ -n "$STAGE_CFLAGS" ]] && export CFLAGS="$CFLAGS $STAGE_CFLAGS"
- [[ -n "$STAGE_CXXFLAGS" ]] && export CXXFLAGS="$CXXFLAGS $STAGE_CXXFLAGS"
- [[ -n "$STAGE_LDFLAGS" ]] && export LDFLAGS="$LDFLAGS $STAGE_LDFLAGS"
- if [[ -n "$STAGENAME" && -f /cache.tar.xz ]]; then
- mkdir -p "/$STAGENAME"
- tar xaf /cache.tar.xz -C "/$STAGENAME"
- cd "/$STAGENAME"
- elif [[ -n "$STAGENAME" ]]; then
- mkdir -p "/$STAGENAME"
- cd "/$STAGENAME"
- fi
- git config --global --add safe.directory "$PWD"
- source "$1"
- if [[ -z "$2" ]]; then
- ffbuild_dockerbuild
- else
- "$2"
- fi
- rm -rf "$FFBUILD_PREFIX"/bin
- if [[ -n "$STAGENAME" ]]; then
- rm -rf "/$STAGENAME"
- fi
|