Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfigure
More file actions
Latest commit
executable file
·37 lines (27 loc) · 873 Bytes
/
Copy pathconfigure
File metadata and controls
executable file
·37 lines (27 loc) · 873 Bytes
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
#!/bin/bash
#
# Copyright (c) nexB Inc. http://www.nexb.com/ - All rights reserved.
#
set -e
################################
# change these variables to customize this script locally
################################
# you can define one or more thirdparty dirs, each prefixed with TPP_DIR
export TPP_DIR="thirdparty"
# default configurations for dev
CONF_DEFAULT="etc/conf/dev"
#################################
CFG_CMD_LINE_ARGS="$@"
if [[ "$1"=="" ]];then
# default for dev conf if not argument is provided
CFG_CMD_LINE_ARGS=$CONF_DEFAULT
fi
CONFIGURE_ROOT_DIR="$(cd"$( dirname "${BASH_SOURCE[0]}")"&&pwd)"
if [[ "$PYTHON_EXE"=="" ]];then
PYTHON_EXE=python
fi
$PYTHON_EXE"$CONFIGURE_ROOT_DIR/etc/configure.py"$CFG_CMD_LINE_ARGS
if [ -f"$CONFIGURE_ROOT_DIR/bin/activate" ];then
source"$CONFIGURE_ROOT_DIR/bin/activate"
fi
set +e