-
Notifications
You must be signed in to change notification settings - Fork 8
/
CreateDistroSRC.bat
165 lines (142 loc) · 4.81 KB
/
CreateDistroSRC.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
rmdir /S /Q Distro_SRC
mkdir Distro_SRC
if not "%1" == "" (
if exist scripts (
cd scripts
call ReVersionAll %1
cd ..
)
)
mkdir Distro_SRC\Config
mkdir Distro_SRC\zsMatrix
mkdir Distro_SRC\MsgHook
mkdir Distro_SRC\ScreenSaver
mkdir Distro_SRC\WinampVis
mkdir Distro_SRC\scripts
mkdir Distro_SRC\Help
mkdir Distro_SRC\Help\help.zmatrix.n3.net
mkdir Distro_SRC\Web
mkdir Distro_SRC\Web\zmatrix.n3.net
mkdir Distro_SRC\Setup
copy Readme.txt Distro_SRC
copy SourceCodeReadme.txt Distro_SRC
copy LICENSE.TXT Distro_SRC
copy CreateDistro.bat Distro_SRC
copy CreateDistro9x.bat Distro_SRC
copy CreateDistroNT.bat Distro_SRC
copy CreateDistroSRC.bat Distro_SRC
copy default.cfg Distro_SRC
copy globals.cpp Distro_SRC
copy globals.h Distro_SRC
copy matrix.cpp Distro_SRC
copy matrix.dsp Distro_SRC
copy matrix.dsw Distro_SRC
copy matrix.rc Distro_SRC
copy mmgr.cpp Distro_SRC
copy mmgr.h Distro_SRC
copy nommgr.h Distro_SRC
copy mem_manager_readme.txt Distro_SRC
copy RegistryListenerThread.cpp Distro_SRC
copy RegistryListenerThread.h Distro_SRC
copy resource.h Distro_SRC
copy TopLevelListenerWindow.cpp Distro_SRC
copy TopLevelListenerWindow.h Distro_SRC
copy ZMatrix.ico Distro_SRC
copy "Matrix Code Font.ttf" Distro_SRC
copy "Matrix Code Font ReadMe.txt" Distro_SRC
copy JapaneseSet.txt Distro_SRC
copy MatrixCodeFontSet.txt Distro_SRC
copy Config\AboutUnit.cpp Distro_SRC\Config
copy Config\AboutUnit.dfm Distro_SRC\Config
copy Config\AboutUnit.h Distro_SRC\Config
copy Config\CharSetForm.cpp Distro_SRC\Config
copy Config\CharSetForm.dfm Distro_SRC\Config
copy Config\CharSetForm.h Distro_SRC\Config
copy Config\comments.html Distro_SRC\Config
copy Config\Config.bpr Distro_SRC\Config
copy Config\Config.cpp Distro_SRC\Config
copy Config\ConfigForm.cpp Distro_SRC\Config
copy Config\ConfigForm.dfm Distro_SRC\Config
copy Config\ConfigForm.h Distro_SRC\Config
copy Config\ConfigResources.rc Distro_SRC\Config
copy Config\default.bmk Distro_SRC\Config
copy Config\happy_dude.wav Distro_SRC\Config
copy Config\hire.html Distro_SRC\Config
copy Config\HireFormImage.bmp Distro_SRC\Config
copy Config\HireUnit.cpp Distro_SRC\Config
copy Config\HireUnit.dfm Distro_SRC\Config
copy Config\HireUnit.h Distro_SRC\Config
copy Config\me.bmp Distro_SRC\Config
copy Config\resource.h Distro_SRC\Config
copy zsMatrix\IzsMatrix.h Distro_SRC\zsMatrix
copy zsMatrix\resource.h Distro_SRC\zsMatrix
copy zsMatrix\zsMatrix.cpp Distro_SRC\zsMatrix
copy zsMatrix\zsMatrix.dsp Distro_SRC\zsMatrix
copy zsMatrix\zsMatrix.h Distro_SRC\zsMatrix
copy zsMatrix\zsMatrix.rc Distro_SRC\zsMatrix
copy zsMatrix\zsMatrix.def Distro_SRC\zsMatrix
copy MsgHook\MsgHook.h Distro_SRC\MsgHook
copy MsgHook\MsgHook.cpp Distro_SRC\MsgHook
copy MsgHook\MsgHook.rc Distro_SRC\MsgHook
copy MsgHook\resource.h Distro_SRC\MsgHook
copy MsgHook\MsgHook.dsp Distro_SRC\MsgHook
copy ScreenSaver\ZMatrixSS.cpp Distro_SRC\ScreenSaver
copy ScreenSaver\ZMatrixSS.rc Distro_SRC\ScreenSaver
copy ScreenSaver\resource.h Distro_SRC\ScreenSaver
copy ScreenSaver\ZMatrix.ico Distro_SRC\ScreenSaver
copy ScreenSaver\ZMatrixSS.ini Distro_SRC\ScreenSaver
copy ScreenSaver\ZMatrixSS.dsp Distro_SRC\ScreenSaver
copy WinampVis\main.cpp Distro_SRC\WinampVis
copy WinampVis\vis.h Distro_SRC\WinampVis
copy WinampVis\vis_zmx.bpf Distro_SRC\WinampVis
copy WinampVis\vis_zmx.bpr Distro_SRC\WinampVis
copy WinampVis\vis_zmx.cpp Distro_SRC\WinampVis
copy WinampVis\vis_zmx.h Distro_SRC\WinampVis
copy WinampVis\vis_zmx.res Distro_SRC\WinampVis
copy WinampVis\zmxCommonConfigUnit.cpp Distro_SRC\WinampVis
copy WinampVis\zmxCommonConfigUnit.dfm Distro_SRC\WinampVis
copy WinampVis\zmxCommonConfigUnit.h Distro_SRC\WinampVis
copy WinampVis\zmxFreqModulateModule.cpp Distro_SRC\WinampVis
copy WinampVis\zmxFreqModulateModule.h Distro_SRC\WinampVis
copy WinampVis\zmxVUModulateModule.cpp Distro_SRC\WinampVis
copy WinampVis\zmxVUModulateModule.h Distro_SRC\WinampVis
copy Setup\ZMatrix.iss Distro_SRC\Setup
copy Setup\ZMatrixVis.psc Distro_SRC\Setup
xcopy scripts\* Distro_SRC\scripts\ /S /exclude:GeneralXCopyExclusions.txt
xcopy Help\help.zmatrix.n3.net\* Distro_SRC\Help\help.zmatrix.n3.net\ /S /exclude:GeneralXCopyExclusions.txt
xcopy Web\zmatrix.n3.net\* Distro_SRC\Web\zmatrix.n3.net\ /S /exclude:GeneralXCopyExclusions.txt
cd Distro_SRC
zip -r ..\ZMatrixSRC.zip *
cd ..
if not "%1" == "" (
for /F "tokens=1-3 delims=. " %%i in ("%1") do (
if not "%%i" == "" (
set MajorVer=%%i
) else (
set MajorVer=0
)
if not "%%j" == "" (
set MinorVer=%%j
) else (
set MinorVer=0
)
if not "%%k" == "" (
set ReleaseVer=%%k
) else (
set ReleaseVer=0
)
)
) else (
for /F "tokens=1-4 delims=/ " %%i in ('date /t') do (
set DayOfWeek=%%i
set Month=%%j
set Day=%%k
set Year=%%l
)
)
if not "%1" == "" (
move ZMatrixSRC.zip ZMatrixSRC_%MajorVer%_%MinorVer%_%ReleaseVer%.zip
) else (
move ZMatrixSRC.zip ZMatrixSRC-%Year%-%Month%-%Day%.zip
)
echo