File: build.cmd

package info (click to toggle)
pysvn 1.9.22-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,212 kB
  • sloc: cpp: 20,327; python: 5,485; sh: 869; javascript: 57; makefile: 56; ansic: 52
file content (63 lines) | stat: -rw-r--r-- 1,616 bytes parent folder | download | duplicates (3)
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
54
55
56
57
58
59
60
61
62
63
if not "%1" == "" set PY_VER=%1
if not "%2" == "" set SVN_VER_MAJ_MIN=%2
if not "%3" == "" set BUILD_ARCH=%3

if "%PY_VER%" == "" goto :eof
if "%SVN_VER_MAJ_MIN%" == "" goto :eof
if "%BUILD_ARCH%" == "" goto :eof

if /i "%BUILD_ARCH%" EQU "win32" set BUILD_ARCH=Win32
if /i "%BUILD_ARCH%" EQU "win64" set BUILD_ARCH=Win64

rem restore the path on later runs
if "%BUILD_SAVED_PATH%" NEQ "" PATH %BUILD_SAVED_PATH%
if "%BUILD_SAVED_PATH%" EQU "" set BUILD_SAVED_PATH=%PATH%

set SVN_VER_MAJ_DASH_MIN=%SVN_VER_MAJ_MIN:.=-%
set PY_MAJ=%PY_VER:~0,1%
set PY_MIN=%PY_VER:~2%

echo on
rem Save CWD
pushd .

pushd ..\..\ReleaseEngineering\Windows
call build-config.cmd %PY_VER% %SVN_VER_MAJ_MIN% %BUILD_ARCH%
popd

set PYCXX=%BUILDER_TOP_DIR%\Import\pycxx-%PYCXX_VER%

set PYTHONPATH=%BUILDER_TOP_DIR%\Source

rem prove the python version selected works
%PYTHON% -c "import sys;print( 'Info: Python Version %%s' %% sys.version )"
echo SVN Version:
svn --version --quiet

rem restore original CWD
popd

if "%4" == "setup" goto :eof

%PYTHON% setup.py configure --verbose --platform=%BUILD_ARCH% --pycxx-dir=%USERPROFILE%\Projects\PyCxx --distro-dir=%TARGET%\dist

if exist pysvn\_pysvn* del pysvn\_pysvn*

if ERRORLEVEL 1 goto :EOF
nmake clean
if ERRORLEVEL 1 goto :EOF
nmake
if ERRORLEVEL 1 goto :EOF

echo fake dll >pysvn\fake.dll
del pysvn\*.dll
if ERRORLEVEL 1 goto :EOF

xcopy /q C:\BuildRoot\%BUILD_ARCH%-VC-%VC_VER%-%SVN_VER%\dist\bin\*.dll pysvn
if ERRORLEVEL 1 goto :EOF

cd ..\Tests
if ERRORLEVEL 1 goto :EOF
nmake clean
if ERRORLEVEL 1 goto :EOF
nmake