Welcome to mirror list, hosted at ThFree Co, Russian Federation.

package.bat « msvc - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 85ae35f0f5d30238cffa73d41df711b8718e4d76 (plain)
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

IF "" == "%1" (
	ECHO Error: No platform parameter set.
	GOTO ON_ERROR
)
	
IF "" == "%2" (
	ECHO Error: No configuration parameter set.
	GOTO ON_ERROR
)

IF NOT EXIST .\%1\lib\%2 (
	ECHO Error: No lib directory available for %1 %2. Any build availalbe for platform, configuration pair?
	GOTO ON_ERROR
)

IF NOT EXIST .\%1\bin\%2 (
	ECHO Error: No bin directory available for %1 %2. Any build availalbe for platform, configuration pair?
	GOTO ON_ERROR
)

SET PACKAGE_DIR=.\package\%1\%2

ECHO Packaging mono build %1 %2 into '%PACKAGE_DIR%' ...

IF EXIST %PACKAGE_DIR% rmdir %PACKAGE_DIR% /s /q
mkdir %PACKAGE_DIR%
mkdir %PACKAGE_DIR%\include\mono-2.0
xcopy .\include\*.* %PACKAGE_DIR%\include\mono-2.0\ /s /e /q /y > nul

xcopy .\%1\lib\%2\*.lib %PACKAGE_DIR%\lib\ /s /e /q /y > nul
xcopy .\%1\lib\%2\*.pdb %PACKAGE_DIR%\lib\ /s /e /q /y > nul

xcopy .\%1\bin\%2\*.exe %PACKAGE_DIR%\bin\ /s /e /q /y > nul
xcopy .\%1\bin\%2\*.dll %PACKAGE_DIR%\bin\ /s /e /q /y > nul
xcopy .\%1\bin\%2\*.pdb %PACKAGE_DIR%\bin\ /s /e /q /y > nul
xcopy .\%1\bin\%2\*.lib %PACKAGE_DIR%\bin\ /s /e /q /y > nul

ECHO Packaging of mono build %1 %2 into '%PACKAGE_DIR%' DONE. 

EXIT /b 0

:ON_ERROR
	ECHO "package.bat [win32|x64] [Debug|Release]"
	EXIT /b 1

@ECHO on