forked from aboutcode-org/deltacode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.bat
48 lines (38 loc) · 1.15 KB
/
configure.bat
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
@echo OFF
@rem Copyright (c) 2015-2018 nexB Inc. http://www.nexb.com/ - All rights reserved.
@rem ################################
@rem # change these variables to customize this script locally
@rem ################################
@rem # you can define one or more thirdparty dirs, each prefixed with TPP_DIR
set TPP_DIR_BASE=thirdparty/base
set TPP_DIR_PROD=thirdparty/prod
set TPP_DIR_DEV=thirdparty/dev
@rem # default configurations for dev
set CONF_DEFAULT="etc/conf/dev"
@rem #################################
set CFG_CMD_LINE_ARGS=
@rem Collect/Slurp all command line arguments in a variable
:collectarg
if ""%1""=="""" (
goto continue
)
call set CFG_CMD_LINE_ARGS=%CFG_CMD_LINE_ARGS% %1
shift
goto collectarg
:continue
@rem default to dev configuration when no args are passed
if "%CFG_CMD_LINE_ARGS%"==" " (
set CFG_CMD_LINE_ARGS="%CONF_DEFAULT%"
goto configure
)
if "%CFG_CMD_LINE_ARGS%"==" --init" (
set CFG_CMD_LINE_ARGS="%CONF_INIT%"
goto configure
)
:configure
call c:\Python27\python.exe etc/configure.py %CFG_CMD_LINE_ARGS%
if exist bin\activate (
bin\activate
)
goto EOS
:EOS