-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetup.sh
executable file
·38 lines (34 loc) · 1.43 KB
/
Setup.sh
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
#!/bin/bash
# ----------------------------------------------------------------------
# |
# | Setup.sh
# |
# | David Brownell <[email protected]>
# | 2018-05-09 10:37:21
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2018-22.
# | Distributed under the Boost Software License, Version 1.0.
# | (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# |
# ----------------------------------------------------------------------
set -e # Exit on error
set +v # Disable output
# ----------------------------------------------------------------------
# |
# | Run as:
# | ./Setup.sh [/debug] [/verbose] [/configuration=<config_name>]*
# |
# ----------------------------------------------------------------------
# Note that sudo is necessary because the process will create symbolic links
if [[ "${DEVELOPMENT_ENVIRONMENT_FUNDAMENTAL}" = "" ]]
then
echo
echo "ERROR: Please run Activate.sh within a repository before running this script. It may be necessary to Setup and Activate the Common_Environment repository before setting up this one."
echo
exit -1
fi
pushd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" > /dev/null
source $DEVELOPMENT_ENVIRONMENT_FUNDAMENTAL/RepositoryBootstrap/Impl/Setup.sh "$@"
popd > /dev/null