Subversion Repositories Aucun

Rev

Rev 102 | Rev 215 | 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
6
 
7
echo Getting repository URL
84 ixe013 8
SET TEMP_FILE=%RANDOM%-%RANDOM%.tmp
190 ixe013 9
svn info | findstr URL > %TEMP_FILE%
84 ixe013 10
 
11
SET /P SVN_URL= < %TEMP_FILE%
12
del %TEMP_FILE%
13
 
86 ixe013 14
echo Checking out files
190 ixe013 15
svn co -q %SVN_URL:~5% %PROJECT_NAME%
84 ixe013 16
 
86 ixe013 17
echo Creating source zip
18
zip -rp -q %PROJECT_NAME%-src.zip %PROJECT_NAME%\*
85 ixe013 19
 
86 ixe013 20
pushd %PROJECT_NAME%
84 ixe013 21
 
86 ixe013 22
echo Building release configuration
23
for %%i in (*.sln) do msbuild %%i /nologo /v:q /p:Configuration=Release /t:Rebuild
24
echo Building debug configuration
25
for %%i in (*.sln) do msbuild %%i /nologo /v:q /p:Configuration=Debug   /t:Rebuild
84 ixe013 26
 
86 ixe013 27
echo Creating binary zip
87 ixe013 28
zip -j -q ..\%PROJECT_NAME%.zip README.txt release\%PROJECT_NAME%.dll sample.reg
86 ixe013 29
 
30
popd
31
 
32
rd /s /q %PROJECT_NAME%
33
 
34
dir *.zip | findstr zip
35
echo.
36
echo Done.
84 ixe013 37
endlocal
86 ixe013 38
echo.