Skip to content

Commit c6826fe

Browse files
committed
Use a single dir for third-party libraries
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent a6281c4 commit c6826fe

File tree

83 files changed

+109
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+109
-110
lines changed

configure

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
# change these variables to customize this script locally
77
################################
88
# you can define one or more thirdparty dirs, each prefixed with TPP_DIR
9-
export TPP_DIR_BASE="thirdparty/base"
10-
export TPP_DIR_DEV="thirdparty/dev"
11-
export TPP_DIR_PROD="thirdparty/prod"
9+
export TPP_DIR_BASE="thirdparty"
1210

1311
# default configurations for dev
1412
CONF_DEFAULT="etc/conf/dev"

configure.bat

Lines changed: 54 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,54 @@
1-
@echo ON
2-
setlocal
3-
@rem Copyright (c) nexB Inc. http://www.nexb.com/ - All rights reserved.
4-
5-
@rem ################################
6-
@rem # Defaults. change these variables to customize this script locally
7-
@rem ################################
8-
@rem # you can define one or more thirdparty dirs, each prefixed with TPP_DIR
9-
set TPP_DIR_BASE=thirdparty/base
10-
set TPP_DIR_DEV=thirdparty/dev
11-
set TPP_DIR_PROD=thirdparty/prod
12-
13-
set DEFAULT_PYTHON=python
14-
15-
@rem # default configurations
16-
set CONF_DEFAULT="etc/conf/dev"
17-
@rem #################################
18-
19-
@rem this always has a trailing backslash
20-
set CFG_ROOT_DIR=%~dp0
21-
22-
@rem a possible alternative way and simpler way to slurp args
23-
@rem set CFG_CMD_LINE_ARGS=%*
24-
25-
@rem Collect all command line arguments in a variable
26-
set CFG_CMD_LINE_ARGS=
27-
28-
:collectarg
29-
if ""%1""=="""" goto continue
30-
set CFG_CMD_LINE_ARGS=%CFG_CMD_LINE_ARGS% %1
31-
shift
32-
goto collectarg
33-
34-
:continue
35-
36-
37-
@rem Set defaults
38-
if "%CFG_CMD_LINE_ARGS%"=="" set CFG_CMD_LINE_ARGS=%CONF_DEFAULT%
39-
if "%PYTHON_EXE%"=="" set PYTHON_EXE=%DEFAULT_PYTHON%
40-
41-
42-
call "%PYTHON_EXE%" %CFG_ROOT_DIR%\etc\configure.py %CFG_CMD_LINE_ARGS%
43-
44-
45-
@rem Return a proper return code on failure
46-
if %errorlevel% neq 0 (
47-
exit /b %errorlevel%
48-
)
49-
50-
51-
@rem Activate the virtualenv
52-
endlocal
53-
if exist "%CFG_ROOT_DIR%bin\activate" (
54-
"%CFG_ROOT_DIR%bin\activate"
55-
)
56-
goto EOS
57-
58-
:EOS
1+
@echo OFF
2+
setlocal
3+
@rem Copyright (c) nexB Inc. http://www.nexb.com/ - All rights reserved.
4+
5+
@rem ################################
6+
@rem # Defaults. change these variables to customize this script locally
7+
@rem ################################
8+
@rem # you can define one or more thirdparty dirs, each prefixed with TPP_DIR
9+
set TPP_DIR=thirdparty
10+
11+
set DEFAULT_PYTHON=python
12+
13+
@rem # default configurations for dev
14+
set CONF_DEFAULT="etc/conf/dev"
15+
@rem #################################
16+
17+
set CFG_ROOT_DIR=%~dp0
18+
19+
@rem Collect all command line arguments in a variable
20+
set CFG_CMD_LINE_ARGS=
21+
22+
@rem a possible alternative way and simpler way to slurp args
23+
@rem set CFG_CMD_LINE_ARGS=%*
24+
25+
26+
:collectarg
27+
if ""%1""=="""" goto continue
28+
call set CFG_CMD_LINE_ARGS=%CFG_CMD_LINE_ARGS% %1
29+
shift
30+
goto collectarg
31+
32+
:continue
33+
34+
@rem Set defaults when no args are passed
35+
if "%CFG_CMD_LINE_ARGS%"=="" set CFG_CMD_LINE_ARGS="%CONF_DEFAULT%"
36+
if "%PYTHON_EXE%"=="" set PYTHON_EXE=%DEFAULT_PYTHON%
37+
38+
39+
call "%PYTHON_EXE%" "%CFG_ROOT_DIR%etc\configure.py" %CFG_CMD_LINE_ARGS%
40+
@rem Return a proper return code on failure
41+
42+
if %errorlevel% neq 0 (
43+
exit /b %errorlevel%
44+
)
45+
46+
47+
@rem Activate the virtualenv
48+
endlocal
49+
if exist "%CFG_ROOT_DIR%bin\activate" (
50+
"%CFG_ROOT_DIR%bin\activate"
51+
)
52+
goto EOS
53+
54+
:EOS
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)