-
Notifications
You must be signed in to change notification settings - Fork 1
/
create_codeplex_release.bat
42 lines (34 loc) · 1.31 KB
/
create_codeplex_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
40
41
42
@echo off
setlocal
set msbuild=C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
set year=%DATE:~12,2%
set month=%DATE:~4,2%
set day=%DATE:~7,2%
set release=System.Net.FtpClient.%year%.%month%.%day%
set archive=%release%.zip
if exist "%release%" rd /s /q "%release%"
if exist "%archive%" del /q "%archive%"
md "%release%"
md "%release%\bin"
md "%release%\source"
md "%release%\source\Extensions"
md "%release%\examples"
md "%release%\help"
rd /q /s System.Net.FtpClient\bin
%msbuild% /p:Configuration=Debug "System.Net.FtpClient\System.Net.FtpClient.csproj"
%msbuild% /p:Configuration=Release "System.Net.FtpClient\System.Net.FtpClient.csproj"
xcopy /s "System.Net.FtpClient\bin" "%release%\bin\"
xcopy "System.Net.FtpClient\*.cs" "%release%\source\"
xcopy "System.Net.FtpClient\Extensions\*.cs" "%release%\source\Extensions\"
xcopy "System.Net.FtpClient\*.csproj" "%release%\source\"
xcopy "Examples\*.cs" "%release%\examples\"
xcopy "Examples\*.csproj" "%release%\examples\"
xcopy "Sandcastle\README.txt" "%release%\help\"
xcopy "Sandcastle\CHM\System.Net.FtpClient.chm" "%release%\help\"
xcopy /s "Sandcastle\HTML\*" "%release%\help\html\"
xcopy "LICENSE.TXT" "%release%\"
cd "%release%"
"C:\Program Files\7-Zip\7z.exe" a -tzip "..\%archive%" *
cd ..
rd /s /q "%release%"
pause