comparison Snapshot.ps1 @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 git archive --format=zip -o C:\Temp\BLToolkitSnapshot\bltoolkit_dev.zip master
2
3 $revision = 0
4
5 git rev-list master |
6 Foreach-Object {
7 $revision = $revision + 1
8 }
9
10 Write-Host "BLToolkit revision: $revision"
11 Write-Host ""
12
13 c:
14
15 if (!([System.IO.DirectoryInfo]"c:\temp\").Exists) { md c:\temp }
16 if (!([System.IO.DirectoryInfo]"c:\temp\BLToolkitSnapshot\").Exists) { md c:\temp\BLToolkitSnapshot }
17
18 cd c:\temp\BLToolkitSnapshot\
19
20 if (([System.IO.DirectoryInfo]"c:\temp\BLToolkitSnapshot\bl-toolkit\").Exists) {
21 rd bl-toolkit\* -recurse
22 } else {
23 md bl-toolkit
24 }
25
26 cd bl-toolkit
27
28 $rar = '"' + ${env:ProgramFiles(x86)} + '\WinRAR\WinRar.exe" x ..\bltoolkit_dev.zip'
29 cmd /c $rar
30
31 del ..\*.zip
32
33 $rev_file = '// Autogenerated. Do not modify!
34
35 namespace BLToolkit
36 {
37 partial class BLToolkitConstants
38 {
39 // <summary>
40 // Revision component of version.
41 // <summary>
42 public const string Revision = "' + $revision + '";
43 }
44 }'
45
46 del Source\Properties\Revision.generated.cs
47 $rev_file >> Source\Properties\Revision.generated.cs
48
49 $rar = '"' + ${env:ProgramFiles(x86)} + '\WinRAR\WinRar.exe" a -m5 -md1024 -s -r -rr -AFzip -x*\_svn\* c:\temp\BLToolkitSnapshot\bltoolkit_dev *.*'
50 cmd /c $rar
51
52 $rar = '"' + ${env:ProgramFiles(x86)} + '\WinRAR\WinRar.exe" a -m5 -md1024 -s -r -rr -AFzip -x*\_svn\* c:\temp\BLToolkitSnapshot\bltoolkit Source\*.*'
53 cmd /c $rar
54
55 cd Source
56
57 $comp = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe BLToolkit.3.csproj /property:Configuration=Release"
58 cmd /c $comp
59 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLToolkit.4.csproj /property:Configuration=Release"
60 cmd /c $comp
61 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLToolkit.Data.4.csproj /property:Configuration=Release"
62 cmd /c $comp
63 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLToolkit.SL.4.csproj /property:Configuration=Release"
64 cmd /c $comp
65
66 copy bin\Release\*.dll .
67 md DataProviders
68
69 cd ..\Tools\BLTgen
70
71 $comp = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe BLTgen.2008.csproj /property:Configuration=Release"
72 cmd /c $comp
73 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLTgen.2010.csproj /property:Configuration=Release"
74 cmd /c $comp
75
76 copy bin\Release\*.exe ..\..\Source
77
78 cd ..\..\DataProviders
79
80 $comp = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe BLToolkit.Data.DataProvider.DB2.3.csproj /property:Configuration=Release"
81 cmd /c $comp
82 $comp = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe BLToolkit.Data.DataProvider.Firebird.3.csproj /property:Configuration=Release"
83 cmd /c $comp
84 $comp = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe BLToolkit.Data.DataProvider.Informix.3.csproj /property:Configuration=Release"
85 cmd /c $comp
86 $comp = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe BLToolkit.Data.DataProvider.MySql.3.csproj /property:Configuration=Release"
87 cmd /c $comp
88 $comp = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe BLToolkit.Data.DataProvider.Oracle.3.csproj /property:Configuration=Release"
89 cmd /c $comp
90 $comp = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe BLToolkit.Data.DataProvider.PostgreSQL.3.csproj /property:Configuration=Release"
91 cmd /c $comp
92 $comp = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe BLToolkit.Data.DataProvider.SqlCe.3.csproj /property:Configuration=Release"
93 cmd /c $comp
94 $comp = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe BLToolkit.Data.DataProvider.SQLite.3.csproj /property:Configuration=Release"
95 cmd /c $comp
96 $comp = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe BLToolkit.Data.DataProvider.Sybase.3.csproj /property:Configuration=Release"
97 cmd /c $comp
98
99 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLToolkit.Data.DataProvider.DB2.4.csproj /property:Configuration=Release"
100 cmd /c $comp
101 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLToolkit.Data.DataProvider.Firebird.4.csproj /property:Configuration=Release"
102 cmd /c $comp
103 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLToolkit.Data.DataProvider.Informix.4.csproj /property:Configuration=Release"
104 cmd /c $comp
105 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLToolkit.Data.DataProvider.MySql.4.csproj /property:Configuration=Release"
106 cmd /c $comp
107 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLToolkit.Data.DataProvider.Oracle.4.csproj /property:Configuration=Release"
108 cmd /c $comp
109 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLToolkit.Data.DataProvider.PostgreSQL.4.csproj /property:Configuration=Release"
110 cmd /c $comp
111 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLToolkit.Data.DataProvider.SqlCe.4.csproj /property:Configuration=Release"
112 cmd /c $comp
113 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLToolkit.Data.DataProvider.SQLite.4.csproj /property:Configuration=Release"
114 cmd /c $comp
115 $comp = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe BLToolkit.Data.DataProvider.Sybase.4.csproj /property:Configuration=Release"
116 cmd /c $comp
117
118 copy bin\Release\BLToolkit.Data.*.dll ..\Source\DataProviders
119
120 cd ..\Source
121
122 $rar = '"' + ${env:ProgramFiles(x86)} + '\WinRAR\WinRar.exe" a -m5 -md1024 -s -r -rr -AFzip -x*\_svn\* -x*\bin\* -x*\obj\* c:\temp\BLToolkitSnapshot\bltoolkit_bin *.exe *.dll DataProvider\ Data\DataProvider\'
123 cmd /c $rar
124
125 ftp -s:e:\documents\copybltsnapshot.txt ftp.bltoolkit.net