Skip to content

Commit c04fa87

Browse files
Alvin SevilleAlvin Seville
authored andcommitted
bat and examples update
2 parents c96691a + ba9224e commit c04fa87

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+3488
-32
lines changed

NETMouse - .NET release/ABCNET.csproj

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,31 @@
4747
</Reference>
4848
</ItemGroup>
4949
<ItemGroup>
50+
<None Include="Examples\C#\Arrays_1.cs" />
51+
<None Include="Examples\C#\Arrays_10.cs" />
52+
<None Include="Examples\C#\Arrays_11.cs" />
53+
<None Include="Examples\C#\Arrays_12.cs" />
54+
<None Include="Examples\C#\Arrays_13.cs" />
55+
<None Include="Examples\C#\Arrays_14.cs" />
56+
<None Include="Examples\C#\Arrays_2.cs" />
57+
<None Include="Examples\C#\Arrays_3.cs" />
58+
<None Include="Examples\C#\Arrays_4.cs" />
59+
<None Include="Examples\C#\Arrays_5.cs" />
60+
<None Include="Examples\C#\Arrays_6.cs" />
61+
<None Include="Examples\C#\Arrays_7.cs" />
62+
<None Include="Examples\C#\Arrays_8.cs" />
63+
<None Include="Examples\C#\Arrays_9.cs" />
64+
<None Include="Examples\C#\Matrices_1.cs" />
65+
<None Include="Examples\C#\Matrices_10.cs" />
66+
<None Include="Examples\C#\Matrices_11.cs" />
67+
<None Include="Examples\C#\Matrices_2.cs" />
68+
<None Include="Examples\C#\Matrices_3.cs" />
69+
<None Include="Examples\C#\Matrices_4.cs" />
70+
<None Include="Examples\C#\Matrices_5.cs" />
71+
<None Include="Examples\C#\Matrices_6.cs" />
72+
<None Include="Examples\C#\Matrices_7.cs" />
73+
<None Include="Examples\C#\Matrices_8.cs" />
74+
<None Include="Examples\C#\Matrices_9.cs" />
5075
<Compile Include="Extensions\ArrExt.cs" />
5176
<Compile Include="Extensions\AssociateRes.cs" />
5277
<Compile Include="Extensions\PartionRes.cs" />
@@ -66,7 +91,71 @@
6691
<Compile Include="Utils\Tup.cs" />
6792
</ItemGroup>
6893
<ItemGroup>
94+
<Content Include="Examples\C#\ABCNET.dll" />
95+
<Content Include="Examples\C#\ABCNET.xml" />
96+
<Content Include="Examples\PascalABC.NET\ABCNET.dll" />
97+
<Content Include="Examples\PascalABC.NET\ABCNET.xml" />
98+
<Content Include="Examples\PascalABC.NET\Arrays_1.exe" />
99+
<Content Include="Examples\PascalABC.NET\Arrays_10.exe" />
100+
<Content Include="Examples\PascalABC.NET\Arrays_11.exe" />
101+
<Content Include="Examples\PascalABC.NET\Arrays_12.exe" />
102+
<Content Include="Examples\PascalABC.NET\Arrays_13.exe" />
103+
<Content Include="Examples\PascalABC.NET\Arrays_14.exe" />
104+
<Content Include="Examples\PascalABC.NET\Arrays_2.exe" />
105+
<Content Include="Examples\PascalABC.NET\Arrays_3.exe" />
106+
<Content Include="Examples\PascalABC.NET\Arrays_4.exe" />
107+
<Content Include="Examples\PascalABC.NET\Arrays_5.exe" />
108+
<Content Include="Examples\PascalABC.NET\Arrays_6.exe" />
109+
<Content Include="Examples\PascalABC.NET\Arrays_7.exe" />
110+
<Content Include="Examples\PascalABC.NET\Arrays_8.exe" />
111+
<Content Include="Examples\PascalABC.NET\Arrays_9.exe" />
112+
<Content Include="Examples\PascalABC.NET\Matrices_1.exe" />
113+
<Content Include="Examples\PascalABC.NET\Matrices_10.exe" />
114+
<Content Include="Examples\PascalABC.NET\Matrices_11.exe" />
115+
<Content Include="Examples\PascalABC.NET\Matrices_2.exe" />
116+
<Content Include="Examples\PascalABC.NET\Matrices_3.exe" />
117+
<Content Include="Examples\PascalABC.NET\Matrices_4.exe" />
118+
<Content Include="Examples\PascalABC.NET\Matrices_5.exe" />
119+
<Content Include="Examples\PascalABC.NET\Matrices_6.exe" />
120+
<Content Include="Examples\PascalABC.NET\Matrices_7.exe" />
121+
<Content Include="Examples\PascalABC.NET\Matrices_8.exe" />
122+
<Content Include="Examples\PascalABC.NET\Matrices_9.exe" />
69123
<Content Include="Для разработчиков.txt" />
70124
</ItemGroup>
125+
<ItemGroup>
126+
<None Include="Actions\PrepareVersion.bat" />
127+
<None Include="Examples\PascalABC.NET\Arrays_1.pas" />
128+
<None Include="Examples\PascalABC.NET\Arrays_10.pas" />
129+
<None Include="Examples\PascalABC.NET\Arrays_11.pas" />
130+
<None Include="Examples\PascalABC.NET\Arrays_12.pas" />
131+
<None Include="Examples\PascalABC.NET\Arrays_13.pas" />
132+
<None Include="Examples\PascalABC.NET\Arrays_14.pas" />
133+
<None Include="Examples\PascalABC.NET\Arrays_2.pas" />
134+
<None Include="Examples\PascalABC.NET\Arrays_3.pas" />
135+
<None Include="Examples\PascalABC.NET\Arrays_4.pas" />
136+
<None Include="Examples\PascalABC.NET\Arrays_5.pas" />
137+
<None Include="Examples\PascalABC.NET\Arrays_6.pas" />
138+
<None Include="Examples\PascalABC.NET\Arrays_7.pas" />
139+
<None Include="Examples\PascalABC.NET\Arrays_8.pas" />
140+
<None Include="Examples\PascalABC.NET\Arrays_9.pas" />
141+
<None Include="Examples\PascalABC.NET\Matrices_1.pas" />
142+
<None Include="Examples\PascalABC.NET\Matrices_10.pas" />
143+
<None Include="Examples\PascalABC.NET\Matrices_11.pas" />
144+
<None Include="Examples\PascalABC.NET\Matrices_2.pas" />
145+
<None Include="Examples\PascalABC.NET\Matrices_3.pas" />
146+
<None Include="Examples\PascalABC.NET\Matrices_4.pas" />
147+
<None Include="Examples\PascalABC.NET\Matrices_5.pas" />
148+
<None Include="Examples\PascalABC.NET\Matrices_6.pas" />
149+
<None Include="Examples\PascalABC.NET\Matrices_7.pas" />
150+
<None Include="Examples\PascalABC.NET\Matrices_8.pas" />
151+
<None Include="Examples\PascalABC.NET\Matrices_9.pas" />
152+
</ItemGroup>
153+
<ItemGroup>
154+
<Folder Include="Prepared release\" />
155+
</ItemGroup>
71156
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
157+
<PropertyGroup>
158+
<PostBuildEvent>"$(ProjectDir)Actions\PrepareVersion.bat" "$(TargetDir)" "$(SolutionDir)"
159+
</PostBuildEvent>
160+
</PropertyGroup>
72161
</Project>
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
title PrepareVersion
2+
setlocal
3+
4+
Rem = = = = = = = = = = = = = = = = = = = = = = = = = = =
5+
6+
set "dllPath=%~1ABCNET.dll"
7+
set "xmlPath=%~1ABCNET.xml"
8+
set "pascalExamplesFolder=%~2NETMouse - .NET release\Examples\PascalABC.NET\"
9+
set "csharpExamplesFolder=%~2NETMouse - .NET release\Examples\C#\"
10+
set "preparedReleaseFolder=%~2Prepared release\"
11+
12+
set "copyingError=[CRITICAL ERROR] ABCNET.dll or ABCNET.xml file or folder to copy files to not found: "
13+
14+
echo Files copying...
15+
16+
if not exist "%pascalExamplesFolder%" (
17+
echo %copyingError%%pascalExamplesFolder%
18+
pause
19+
exit 1
20+
)
21+
22+
if not exist "%csharpExamplesFolder%" (
23+
echo %copyingError%%csharpExamplesFolder%
24+
pause
25+
exit 1
26+
)
27+
28+
if not exist "%dllPath%" (
29+
echo %copyingError%%dllPath%
30+
pause
31+
exit 1
32+
)
33+
34+
copy "%dllPath%" "%pascalExamplesFolder%"
35+
copy "%dllPath%" "%csharpExamplesFolder%"
36+
37+
if not exist "%xmlPath%" (
38+
echo %copyingError%%xmlPath%
39+
pause
40+
exit 1
41+
)
42+
43+
copy "%xmlPath%" "%pascalExamplesFolder%"
44+
copy "%xmlPath%" "%csharpExamplesFolder%"
45+
46+
echo Files have been successfully copied.
47+
48+
Rem = = = = = = = = = = = = = = = = = = = = = = = = = = =
49+
50+
set "pascalabcnetCompiler=C:\Program Files (x86)\PascalABC.NET\pabcnetcclear.exe"
51+
set "csharpCompiler=C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe"
52+
53+
set "compilationError=[CRITICAL ERROR] pabcnetcclear.exe or csc.exe file not found: "
54+
55+
echo Examples recompiling...
56+
57+
if not exist "%pascalabcnetCompiler%" (
58+
echo "%compilationError%%pascalabcnetCompiler%"
59+
pause
60+
exit 1
61+
)
62+
63+
for %%f in ("%pascalExamplesFolder%*.pas") do "%pascalabcnetCompiler%" "%%f"
64+
65+
if not exist "%csharpCompiler%" (
66+
echo "%compilationError%%csharpCompiler%"
67+
pause
68+
exit 1
69+
)
70+
71+
for %%f in ("%csharpExamplesFolder%*.cs") do "%csharpCompiler%" "-reference:ABCNET.dll" "-lib:%csharpExamplesFolder%\" "%%f"
72+
73+
echo Examples have been successfully recompiled.
74+
75+
Rem = = = = = = = = = = = = = = = = = = = = = = = = = = =
76+
77+
echo Files archiving...
78+
79+
echo Files have been successfully archived.
80+
81+
endlocal
48.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)