blob: f0c03d0884ac6d1cf67c3d42184c44df4590e6dc (
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
|
@echo off
set GetVer=for /F "tokens=1,2,3 delims= " %%i in (build.no) do set MirVer=%%i.%%j.%%k
rem Get version
if exist ..\..\build\build.no goto localgetver
if not exist tmp mkdir tmp
Tools\wget.exe -O tmp\build.no http://svn.miranda-ng.org/main/trunk/build/build.no
pushd tmp
%GetVer%
popd
goto esclocal
:localgetver
pushd ..\..\build
%GetVer%
popd
:esclocal
rem end
rem Set compiler variables
set Compile32=Inno Setup 5\ISCC.exe" /Dptx86 /DAppVer=%MirVer% /O"Output" "InnoNG_32\MirandaNG.iss"
set Compile64=Inno Setup 5\ISCC.exe" /DAppVer=%MirVer% /O"Output" "InnoNG_64\MirandaNG.iss"
rem end
rem Make
if defined ProgramFiles(x86) (
"%ProgramFiles(x86)%\%Compile32%
"%ProgramFiles(x86)%\%Compile64%
) else (
"%ProgramFiles%\%Compile32%
"%ProgramFiles%\%Compile64%
)
rem end
rem Error repotrt
if errorlevel 1 goto compileerror
goto end
:compileerror
cls && echo Something went wrong... Please run createstructure.bat and try again
pause
:end
rem end
|