blob: 73e7fd29d0053e743d0de70c1b345646ff2f3e96 (
plain)
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
|
rem @echo off
rem Batch file to build and upload files
rem
rem TODO: Integration with FL
set name=spellchecker
set version=0.2.6.0
rem To upload, this var must be set here or in other batch
rem set ftp=ftp://<user>:<password>@<ftp>/<path>
echo Building %name% ...
rem msdev ..\%name%.dsp /MAKE "%name% - Win32 Release" /REBUILD
rem msdev ..\%name%.dsp /MAKE "%name% - Win32 Unicode Release" /REBUILD
echo Generating files for %name% ...
del *.zip
del *.dll
del *.pdb
rd /S /Q Plugins
rd /S /Q Docs
rd /S /Q src
copy "..\bin\Win32\Release\%name%.pdb"
copy "..\bin\Win32\Unicode Release\%name%W.pdb"
copy "..\bin\x64\Unicode Release\%name%64.pdb"
copy ..\Docs\%name%_changelog.txt
copy ..\Docs\%name%_version.txt
copy ..\Docs\%name%_readme.txt
mkdir Docs
cd Docs
del /Q *.*
copy ..\..\Docs\%name%_readme.txt
copy ..\..\Docs\langpack_%name%.txt
rem copy ..\..\Docs\helppack_%name%.txt
copy ..\..\m_%name%.h
cd ..
mkdir src
cd src
mkdir %name%
cd %name%
del /Q *.*
copy ..\..\..\*.h
copy ..\..\..\*.cpp
copy ..\..\..\*.rc
copy ..\..\..\*.dsp
copy ..\..\..\*.dsw
mkdir res
cd res
del /Q *.*
copy ..\..\..\..\res\*.*
cd ..
mkdir sdk
cd sdk
del /Q *.*
copy ..\..\..\..\sdk\*.*
cd ..
mkdir hunspell
cd hunspell
del /Q *.*
copy ..\..\..\..\hunspell\*.*
cd ..
mkdir Docs
cd Docs
del /Q *.*
copy ..\..\..\..\Docs\*.*
cd ..
cd ..
mkdir utils
cd utils
del /Q *.*
copy ..\..\..\..\utils\*.*
cd ..
cd ..
mkdir Plugins
cd Plugins
del /Q *.dll
copy "..\..\bin\Win32\Release\%name%.dll"
cd ..
zip -r -q %name%.%version%.zip Plugins Docs
copy %name%.%version%.zip %name%.zip
zip -r -q %name%.FL.zip Plugins Docs Dictionaries Icons
cd Plugins
del /Q *.dll
copy "..\..\bin\Win32\Unicode Release\%name%W.dll"
cd ..
zip -r -q %name%W.%version%.zip Plugins Docs
copy %name%W.%version%.zip %name%W.zip
zip -r -q %name%W.FL.zip Plugins Docs Dictionaries Icons
cd Plugins
del /Q *.dll
copy "..\..\bin\x64\Unicode Release\%name%64.dll"
cd ..
zip -r -q %name%64.%version%.zip Plugins Docs
copy %name%64.%version%.zip %name%64.zip
zip -r -q %name%64.FL.zip Plugins Docs Dictionaries Icons
zip -r -q %name%.pdb.%version%.zip %name%.pdb
copy %name%.pdb.%version%.zip %name%.pdb.zip
zip -r -q %name%W.pdb.%version%.zip %name%W.pdb
copy %name%W.pdb.%version%.zip %name%W.pdb.zip
zip -r -q %name%64.pdb.%version%.zip %name%64.pdb
copy %name%64.pdb.%version%.zip %name%64.pdb.zip
zip -r -q %name%_src.zip src\*.*
del *.dll
del *.PDB
rd /S /Q Plugins
rd /S /Q Docs
rd /S /Q src
if "%ftp%"=="" GOTO END
echo Going to upload files...
pause
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%.zip %ftp% -overwrite -close
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%W.zip %ftp% -overwrite -close
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%.pdb.zip %ftp% -overwrite -close
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%W.pdb.zip %ftp% -overwrite -close
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_changelog.txt %ftp% -overwrite -close
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_version.txt %ftp% -overwrite -close
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_readme.txt %ftp% -overwrite -close
rem "C:\Program Files\FileZilla\FileZilla.exe" -u .\srmm.spellchecker.patch %ftp% -overwrite -close
:END
echo Done.
|