-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdistrib2005.bat
48 lines (38 loc) · 1.41 KB
/
distrib2005.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
call prepare.bat
rem you can setup environment for compilation
rem example for Visual Studio 2005
rem place it in setenv.bat: "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
if exist setenv.bat call setenv.bat
call :clean
vcbuild /nologo SRC\CPP\7zip\UI\Far\Far.vcproj "Release|Win32"
@if errorlevel 1 goto error
vcbuild /nologo SRC\CPP\7zip\UI\Far\Far.vcproj "Release x64|x64"
@if errorlevel 1 goto error
vcbuild /nologo SRC\CPP\7zip\UI\Far\Far.vcproj "ReleaseA|Win32"
@if errorlevel 1 goto error
vcbuild /nologo SRC\CPP\7zip\UI\Far\Far.vcproj "ReleaseA x64|x64"
@if errorlevel 1 goto error
call :package PluginW b%build%\7zip-465alt-20-b%build%.zip
call :package PluginW64 b%build%\7zip-465alt64-20-b%build%.zip
call :package PluginA b%build%\7zip-465alt-b%build%.zip
call :package PluginA64 b%build%\7zip-465alt64-b%build%.zip
call :clean
@goto end
:clean
vcbuild /clean /nologo SRC\CPP\7zip\UI\Far\Far.vcproj "Release|Win32"
vcbuild /clean /nologo SRC\CPP\7zip\UI\Far\Far.vcproj "Release x64|x64"
vcbuild /clean /nologo SRC\CPP\7zip\UI\Far\Far.vcproj "ReleaseA|Win32"
vcbuild /clean /nologo SRC\CPP\7zip\UI\Far\Far.vcproj "ReleaseA x64|x64"
@goto end
:package
@mkdir .tmp
@copy SRC\Common\* .tmp\
@copy SRC\%1\7-ZipFar.dll .tmp\
@copy SRC\%1\7-ZipFar.map .tmp\
7z a -mx=9 -tzip %2 .\.tmp\*
@del /q .tmp\*
@rmdir .tmp
@goto end
:error
@echo TERMINATED WITH ERRORS
:end