-
Notifications
You must be signed in to change notification settings - Fork 374
/
bootstrap_docker.sh
executable file
·23 lines (19 loc) · 811 Bytes
/
bootstrap_docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# This script builds the projects listed in build_mainifest.sh, terminating when it reaches TARGET_PROJECT.
# If run from within a project, it will build only that project, unless ONLY_TARGET=false.
set -e
TARGET_PROJECT=$1
REPO=aztec2-internal
COMMIT_HASH=$(git rev-parse HEAD)
# If we're calling this script from within a project directory, that's the target project.
if [ -z "$TARGET_PROJECT" ]; then
TARGET_PROJECT=$(git rev-parse --show-prefix)
if [ -n "$TARGET_PROJECT" ]; then
# We are in a project folder.
ONLY_TARGET=${ONLY_TARGET:-true}
TARGET_PROJECT=$(basename $TARGET_PROJECT)
cd $(git rev-parse --show-cdup)
fi
fi
source ./build-system/scripts/setup_env $COMMIT_HASH '' mainframe_$USER $(git rev-parse --show-toplevel)
build_local $TARGET_PROJECT $ONLY_TARGET