-
-
Notifications
You must be signed in to change notification settings - Fork 240
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·36 lines (32 loc) · 1.15 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·36 lines (32 loc) · 1.15 KB
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
#!/bin/bash
# FluidVoice Build Profile Router
# Defaults to the private Fluid Intelligence build for local development.
#
# Usage:
# ./build.sh # private FI build
# ./build.sh fi # private FI build
set -euo pipefail
PROJECT_DIR="$(cd "$(dirname "$0")" && pwd)"
PROFILE="${1:-${BUILD_PROFILE:-fi}}"
PRIVATE_FI_BUILD_SCRIPT="${PROJECT_DIR}/build_with_FI_incremental.sh"
case "${PROFILE}" in
fi|private|dev|full)
if [ ! -x "${PRIVATE_FI_BUILD_SCRIPT}" ]; then
echo "Private Fluid Intelligence build script is missing:"
echo " ${PRIVATE_FI_BUILD_SCRIPT}"
echo "Restore the private FI build setup, then run: sh build_with_FI_incremental.sh"
exit 1
fi
exec "${PRIVATE_FI_BUILD_SCRIPT}"
;;
public|oss|incremental|fast)
echo "Public/OSS builds are not available from this repo entrypoint."
echo "Use the private Fluid Intelligence build: sh build_with_FI_incremental.sh"
exit 1
;;
*)
echo "Unknown build profile: ${PROFILE}"
echo "Valid profiles: fi/private/dev/full"
exit 1
;;
esac