-
Notifications
You must be signed in to change notification settings - Fork 10
/
make_release.bat
39 lines (30 loc) · 1.3 KB
/
make_release.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
rem @echo off
@echo ***************************************************************************
@echo * CF Imager Source Extraction
@echo ***************************************************************************
@echo ****************** BUILD ****************************************************
cd src
C:\Tools\MSVS2008\Common7\IDE\devenv.com cfimager.sln /build release
if ERRORLEVEL 1 goto ERROR
move release\cfimager.exe ..\CFImager.exe
@echo ****************** CLEAN ****************************************************
if exist .\Release rmdir /S /Q .\Release
if exist .\Debug rmdir /S /Q .\Debug
del /Q .\*.aps
del /Q .\*.bak
del /Q .\*.user
del /Q .\*.ncb
del /Q .\*.suo
@echo ****************** VERSIONING ****************************************************
%PERL%\bin\perl.exe "version.pl" release
call ver.bat
@echo ****************** ZIP ****************************************************
cd ..
if exist "CFImager.v%STMP_BUILD_VERSION%_bin+src.zip" del "CFImager.v%STMP_BUILD_VERSION%_bin+src.zip"
"%TOOLS%\pkzipc.exe" -silent -add -rec -excl=.git* -excl=*.bat -excl=*.zip -excl=*.patch -dir=relative "CFImager.v%STMP_BUILD_VERSION%_bin+src.zip" "*.*"
@echo ****************** DONE ****************************************************
goto EXIT
:ERROR
@echo CFIMager.exe did not build.
cd ..
:EXIT