Subversion Repositories Aucun

Rev

Rev 175 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
86 ixe013 1
@echo off                            
2
 
84 ixe013 3
setlocal
4
 
86 ixe013 5
SET PROJECT_NAME=aucun
172 ixe013 6
SET VCBUILD_DEFAULT_CFG=
86 ixe013 7
 
149 ixe013 8
echo Zipping versioned project files
167 ixe013 9
if exist %PROJECT_NAME%.zip del %PROJECT_NAME%.zip
149 ixe013 10
if exist %PROJECT_NAME%-src.zip del %PROJECT_NAME%-src.zip
11
svn st -v | findstr /V /B "[\?CDIX\!\~]" | gawk "{ $0 = substr($0, 6); print $4 }" | zip %PROJECT_NAME%-src.zip -@
84 ixe013 12
 
167 ixe013 13
echo.
149 ixe013 14
echo Preparing for build
15
md %PROJECT_NAME%
84 ixe013 16
 
86 ixe013 17
pushd %PROJECT_NAME%
84 ixe013 18
 
149 ixe013 19
unzip -q ..\%PROJECT_NAME%-src.zip
20
 
167 ixe013 21
echo.
22
findstr /s /n DebugBreak *.c *.cpp *.h
23
if ERRORLEVEL 1 (
146 ixe013 24
echo Building...
198 ixe013 25
msbuild AnyUserUnlockGina.sln
84 ixe013 26
 
86 ixe013 27
echo Creating binary zip
146 ixe013 28
zip -j -q ..\%PROJECT_NAME%.zip README.txt release\%PROJECT_NAME%.dll x64\release\%PROJECT_NAME%64.dll sample.reg
167 ixe013 29
) else (
30
echo.
31
echo DebugBreak found in source code. Fix it or die.
32
if exist ..\%PROJECT_NAME%.zip del ..\%PROJECT_NAME%.zip
33
if exist ..\%PROJECT_NAME%-src.zip del ..\%PROJECT_NAME%-src.zip
34
)
86 ixe013 35
 
36
popd
37
 
38
rd /s /q %PROJECT_NAME%
39
 
146 ixe013 40
echo.
86 ixe013 41
dir *.zip | findstr zip
175 ixe013 42
 
86 ixe013 43
echo.
175 ixe013 44
unzip -l %PROJECT_NAME%.zip *.dll
45
if NOT ERRORLEVEL 0 (
46
echo.
47
echo Binary not found in distribution. Fix it or die.
48
if exist ..\%PROJECT_NAME%.zip del ..\%PROJECT_NAME%.zip
49
if exist ..\%PROJECT_NAME%-src.zip del ..\%PROJECT_NAME%-src.zip
50
)
51
 
52
echo.
86 ixe013 53
echo Done.
84 ixe013 54
endlocal
86 ixe013 55
echo.