Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
. "${THIS_SCRIPT%/*}/_common/builder.inc.sh"
. "${THIS_SCRIPT%/*}/init.inc.sh"
## END STANDARD BUILD SCRIPT INCLUDE

. "$THIS_SCRIPT_PATH/sites.inc.sh"
Expand Down
17 changes: 17 additions & 0 deletions init.inc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Initialize the shared-sites builder script; this matches build env detected in
# bootstrap.inc.sh

# Get the site BUILDER_TIER and use that to determine builder script environment
if [[ ! -z ${KEYMANHOSTS_TIER+x} ]]; then
BUILDER_TIER="${KEYMANHOSTS_TIER}"
elif [[ -f "$(dirname "$THIS_SCRIPT")/tier.txt" ]]; then
BUILDER_TIER=$(cat "$(dirname "$THIS_SCRIPT")/tier.txt")
else
BUILDER_TIER=TIER_DEVELOPMENT
fi

if [[ "$BUILDER_TIER" == TIER_DEVELOPMENT ]]; then
export KEYMAN_VERSION_ENVIRONMENT=local
fi

. "${THIS_SCRIPT%/*}/_common/builder.inc.sh"