Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/installer/release.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9821 - (show annotations) (download) (as text)
Fri Mar 18 12:56:41 2022 UTC (23 months, 3 weeks ago) by nmaya
File MIME type: application/x-msdos-program
File size: 8139 byte(s)
LibreSSL 3.4.3 に更新

https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.4.3-relnotes.txt
https://marc.info/?l=libressl&m=164736787816474&w=2
1 @echo off
2 setlocal
3 set CUR=%~dp0
4 cd /d %CUR%
5
6 set VS_VERSION=2019
7 set ONIG_VERSION=6.9.7.1
8 rem for 6.9.7.1
9 set ONIG_FOLDER_NAME=6.9.7
10 set ZLIB_VERSION=1.2.11
11 set PUTTY_VERSION=0.76
12 set SFMT_VERSION=1.5.1
13 set CJSON_VERSION=1.7.14
14 set ARGON2_VERSION=20190702
15 set LIBRESSL_VERSION=3.4.3
16
17 if "%APPVEYOR%" == "True" set NOPAUSE=1
18
19 call :setup_tools_env
20
21 echo =======
22 echo 1. force download and rebuild libs / rebuild Tera Term, installer, archive
23 echo 2. download and build libs / rebuild Tera Term, installer, archive
24 echo 3. download and build libs
25 echo 4. build libs and rebuild Tera Term, installer, archive (for Release build)
26 echo 5. build libs and Tera Term (for Normal build, snapshot)
27 echo 7. exec cmd.exe
28 echo 8. check tools
29 echo 9. exit
30
31 if "%1" == "" (
32 set /p no="select no "
33 ) else (
34 set no=%1
35 )
36 echo %no%
37
38 if "%no%" == "1" (
39 call :download_libs force
40 call :build_teraterm freeze_state
41 )
42
43 if "%no%" == "2" (
44 call :download_libs
45 call :build_libs
46 call :build_teraterm freeze_state
47 )
48
49 if "%no%" == "3" (
50 call :download_libs
51 call :build_libs
52 )
53
54 if "%no%" == "4" (
55 call :build_teraterm freeze_state
56 )
57
58 if "%no%" == "5" (
59 call :build_teraterm
60 )
61
62 if "%no%" == "7" (
63 call :exec_cmd
64 )
65
66 if "%no%" == "8" (
67 call :check_tools
68 )
69
70 if not "%NOPAUSE%" == "1" pause
71 exit 0
72
73
74 rem ####################
75 :download_libs
76
77 setlocal
78 cd /d %CUR%..\libs
79
80 if "%1" == "force" goto download_libs_download
81
82 cmake -P checklibs.cmake
83 call checklibs_result.bat
84 del checklibs_result.bat
85 if "%RESULT%" == "1" (
86 echo already all library downloaded
87 goto download_libs_finish
88 )
89
90 :download_libs_download
91
92 :oniguruma
93 %CURL% -L https://github.com/kkos/oniguruma/releases/download/v%ONIG_VERSION%/onig-%ONIG_VERSION%.tar.gz -o oniguruma.tar.gz
94 %CMAKE% -E tar xf oniguruma.tar.gz
95 %CMAKE% -E rm -rf oniguruma
96 %CMAKE% -E rename onig-%ONIG_FOLDER_NAME% oniguruma
97
98 :zlib
99 %CURL% -L https://zlib.net/zlib-%ZLIB_VERSION%.tar.xz -o zlib.tar.xz
100 %CMAKE% -E tar xf zlib.tar.xz
101 %CMAKE% -E rm -rf zlib
102 %CMAKE% -E rename zlib-%ZLIB_VERSION% zlib
103
104 :putty
105 %CURL% -L https://the.earth.li/~sgtatham/putty/%PUTTY_VERSION%/putty-%PUTTY_VERSION%.tar.gz -o putty.tar.gz
106 %CMAKE% -E tar xf putty.tar.gz
107 %CMAKE% -E rm -rf putty
108 %CMAKE% -E rename putty-%PUTTY_VERSION% putty
109
110 :SFMT
111 %CURL% -L http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/SFMT-src-%SFMT_VERSION%.zip -o sfmt.zip
112 %CMAKE% -E tar xf sfmt.zip
113 %CMAKE% -E rm -rf SFMT
114 %CMAKE% -E rename SFMT-src-%SFMT_VERSION% SFMT
115 echo #define SFMT_VERSION "%SFMT_VERSION%" > SFMT\SFMT_version_for_teraterm.h
116
117 :cJSON
118 %CURL% -L https://github.com/DaveGamble/cJSON/archive/v%CJSON_VERSION%.zip -o cJSON.zip
119 %CMAKE% -E tar xf cJSON.zip
120 %CMAKE% -E rm -rf cJSON
121 %CMAKE% -E rename cJSON-%CJSON_VERSION% cJSON
122
123 :argon2
124 %CURL% -L https://github.com/P-H-C/phc-winner-argon2/archive/refs/tags/%ARGON2_VERSION%.tar.gz -o argon2.tar.gz
125 %CMAKE% -E tar xf argon2.tar.gz
126 %CMAKE% -E rm -rf argon2
127 %CMAKE% -E rename phc-winner-argon2-%ARGON2_VERSION% argon2
128
129 :libressl
130 %CURL% -L https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-%LIBRESSL_VERSION%.tar.gz -o libressl.tar.gz
131 %CMAKE% -E tar xf libressl.tar.gz
132 %CMAKE% -E rm -rf libressl
133 %CMAKE% -E rename libressl-%LIBRESSL_VERSION% libressl
134
135 :download_libs_finish
136 endlocal
137 exit /b 0
138
139 rem ####################
140 :build_libs
141
142 setlocal
143 cd /d %CUR%..\libs
144 call buildall.bat
145 endlocal
146 exit /b 0
147
148 rem ####################
149 :build_teraterm
150
151 setlocal
152 cd /d %CUR%
153 set TT_VERSION=
154 for /f "delims=" %%i in ('perl issversion.pl') do @set TT_VERSION=%%i
155
156 if "%1" == "freeze_state" (
157 call build.bat rebuild
158 call makearchive.bat release
159 ) else (
160 call makearchive.bat
161 )
162 call ..\buildtools\svnrev\sourcetree_info.bat
163 if "%1" == "freeze_state" (
164 pushd Output
165 %CMAKE% -E tar cf teraterm-%TT_VERSION%.zip --format=zip teraterm-%TT_VERSION%/
166 popd
167 ) else (
168 %CMAKE% -E tar cf TERATERM_r%SVNVERSION%_%DATE%_%TIME%.zip --format=zip snapshot-%DATE%_%TIME%
169 )
170 %INNO_SETUP% teraterm.iss
171
172 endlocal
173 exit /b 0
174
175 rem ####################
176 :setup_tools_env
177
178 set CURL=%SystemRoot%\System32\curl.exe
179 set CYGWIN_PATH=C:\cygwin64\bin
180 set VS_BASE=C:\Program Files (x86)\Microsoft Visual Studio\%VS_VERSION%
181
182 if exist toolinfo.bat (
183 echo found toolinfo.bat
184 call toolinfo.bat
185 echo toolinfo.bat ok
186 ) else (
187 set PATH=
188 )
189
190 call :search_perl
191 call :search_svn
192 call :search_iscc
193 set PATH=%PATH%;%SVN_PATH%
194 set PATH=%PATH%;%PERL_PATH%
195 set PATH=%PATH%;%SystemRoot%
196 set PATH=%PATH%;%SystemRoot%\system32
197 call :set_vs_env
198 call :search_cmake
199 set PATH=%PATH%;%CYGWIN_PATH%
200 set PATH=%PATH%;%CMAKE_PATH%
201 exit /b 0
202
203 rem ####################
204 :search_perl
205 if exist %PERL_PATH%\perl.exe (
206 set PERL=%PERL_PATH%\perl.exe
207 exit /b 0
208 )
209
210 set PERL=perl.exe
211 where %PERL% > nul 2>&1
212 if %errorlevel% == 0 exit /b 0
213 set PERL=%CUR%..\buildtools\perl\perl\bin\perl.exe
214 if exist %PERL% exit /b 0
215 set PERL=C:\Strawberry\perl\bin\perl.exe
216 if exist %PERL% exit /b 0
217 set PERL=C:\Perl64\bin\perl.exe
218 if exist %PERL% exit /b 0
219 set PERL=C:\Perl\bin\perl.exe
220 if exist %PERL% exit /b 0
221 set PERL=C:\cygwin64\usr\bin\perl.exe
222 if exist %PERL% exit /b 0
223 set PERL=C:\cygwin\usr\bin\perl.exe
224 if exist %PERL% exit /b 0
225 echo perl not found
226 if not "%NOPAUSE%" == "1" pause
227 exit
228
229 rem ####################
230 :search_svn
231 if exist %SVN_PATH%\svn.exe (
232 set SVN=%SVN_PATH%\svn.exe
233 exit /b 0
234 )
235
236 set SVN=svn.exe
237 where %SVN% > nul 2>&1
238 if %errorlevel% == 0 exit /b 0
239 set SVN_PATH=C:\Program Files (x86)\Subversion\bin
240 set SVN="%SVN_PATH%\svn.exe"
241 if exist %SVN% exit /b 0
242 set SVN_PATH=C:\Program Files\TortoiseSVN\bin
243 set SVN="%SVN_PATH%\svn.exe"
244 if exist %SVN% exit /b 0
245 echo svn not found
246 if not "%NOPAUSE%" == "1" pause
247 exit
248
249 rem ####################
250 :search_cmake
251 if exist %CMAKE_PATH%\cmake.exe (
252 set CMAKE="%CMAKE_PATH%\cmake.exe"
253 exit /b 0
254 )
255
256 where %CMAKE% > nul 2>&1
257 if %errorlevel% == 0 exit /b 0
258 set CMAKE_PATH=C:\Program Files\CMake\bin
259 set CMAKE="%CMAKE_PATH%\cmake.exe"
260 if exist %CMAKE% exit /b 0
261 set CMAKE_PATH=%VCINSTALLDIR%\..\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin
262 set CMAKE="%CMAKE_PATH%\cmake.exe"
263 if exist %CMAKE% exit /b 0
264 echo cmake not found
265 if not "%NOPAUSE%" == "1" pause
266 exit
267
268 rem ####################
269 :search_iscc
270 if [%INNO_SETUP%] == [] goto search_iscc_1
271 if exist %INNO_SETUP% (
272 exit /b 0
273 )
274 echo INNO_SETUP=%INNO_SETUP%
275 goto search_iscc_not_found
276
277 :search_iscc_1
278 set INNO_SETUP=%CUR%..\buildtools\innosetup6\bin\ISCC.exe
279 if exist %INNO_SETUP% exit /b 0
280 set INNO_SETUP="C:\Program Files (x86)\Inno Setup 6\iscc.exe"
281 if exist %INNO_SETUP% exit /b 0
282 :search_iscc_not_found
283 echo iscc(inno setup) not found
284 if not "%NOPAUSE%" == "1" pause
285 exit
286
287 rem ####################
288 :set_vs_env
289
290 if exist "%VS_BASE%\Community" (
291 call "%VS_BASE%\Community\VC\Auxiliary\Build\vcvars32.bat"
292 exit /b 0
293 )
294 if exist "%VS_BASE%\Professional" (
295 call "%VS_BASE%\Profssional\VC\Auxiliary\Build\vcvars32.bat"
296 exit /b 0
297 )
298 if exist "%VS_BASE%\Enterprise" (
299 call "%VS_BASE%\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
300 exit /b 0
301 )
302 :vs_not_found
303 echo Visual Studio not found
304 echo VS_BASE=%VS_BASE%
305 if not "%NOPAUSE%" == "1" pause
306 exit
307
308 rem ####################
309 :exec_cmd
310 cmd
311 exit /b 0
312
313 rem ####################
314 :check_tools
315
316 echo cmd(windows)
317 ver
318
319 echo Visual Studio
320 echo VS_BASE=%VS_BASE%
321 cl
322
323 echo curl
324 where curl
325 echo CURL=%CURL%
326 %CURL% --version
327
328 echo svn
329 where svn
330 echo SVN_PATH=%SVN_PATH%
331 echo SVN=%SVN%
332 svn --version
333
334 echo perl
335 where perl
336 echo PERL_PATH=%PERL_PATH%
337 echo PERL=%PERL%
338 perl --version
339
340 echo cmake
341 where cmake
342 echo CMAKE_PATH=%CMAKE_PATH%
343 echo CMAKE=%CMAKE%
344 %CMAKE% --version
345
346 echo cygwin
347 echo CYGWIN_PATH=%CYGWIN_PATH%
348 cygcheck -c base-cygwin
349 cygcheck -c gcc-core
350 cygcheck -c w32api-headers
351 cygcheck -c make
352
353 echo inno setup
354 echo INNO_SETUP=%INNO_SETUP%
355 %INNO_SETUP% /?
356
357 exit /b 0

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26