-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetup.sh
More file actions
executable file
·53 lines (49 loc) · 3.1 KB
/
Setup.sh
File metadata and controls
executable file
·53 lines (49 loc) · 3.1 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# ----------------------------------------------------------------------
# |
# | Run as:
# | Setup.cmd [--configuration <config_name>] [--verbose] [--debug] [--name <unique_environment_name>]
# |
# | Where:
# | --configuration <config_name> : Name of the configuration to setup (this value can appear
# | multiple times on the command line). All available
# | configurations are setup if none are explicitly provided.
# |
# | --force : Force setup.
# | --verbose : Verbose output.
# | --debug : Includes debug output (in adddition to verbose output).
# |
# | --name <unique_environment_name> : Setup an environment with a unique name. This allows for the
# | creation of side-by-side environments that are otherwise identical.
# | It is very rare to setup an environment with a unique name.
# |
# | --interactive/--no-interactive : Set the default value for `is_interactive` for those repositories that
# | provide those capabilities during setup.
# |
# | --search-depth <value> : Limit searches for other repositories to N levels deep. This value
# | can help to decrease the overall search times when a dependency
# | repository is not on the system. Coversely, this value can be set
# | to a higher value to not artifically limit searches when a dependency
# | repsitory is on the system but not found using default values.
# | --max-num-searches <value> : Limits the maximum number of searches performed when looking for
# | dependency repositories.
# | --required-ancestor-dir <value> : Restrict searches to this directory when searching for dependency
# | repositories (this value can appear multiple times on the command
# | line).
# |
# | --no-hooks : Do not install Source Control Management (SCM) hooks for this repository
# | (pre-commit, post-commit, etc.).
# |
# ----------------------------------------------------------------------
set -e # Exit on error
set +v # Disable output
if [[ "${DEVELOPMENT_ENVIRONMENT_FOUNDATION}" == "" ]]; then
echo ""
echo "[31m[1mERROR:[0m Please run this script within an activated environment."
echo "[31m[1mERROR:[0m"
echo ""
exit -1
fi
pushd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" > /dev/null
source $DEVELOPMENT_ENVIRONMENT_FOUNDATION/RepositoryBootstrap/Impl/Setup.sh "$@"
popd > /dev/null