Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/installer/makearchive.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11007 - (show annotations) (download) (as text)
Sun Oct 15 14:30:17 2023 UTC (7 months, 2 weeks ago) by nmaya
File MIME type: application/x-msdos-program
File size: 3996 byte(s)
リリースバイナリのファイル名が意図したものにならない問題を修正

ticket: #48846
1 @echo off
2 rem ‚ą‚ĚŠO‚Ĺ set ‚ł‚ę‚˝ RELEASE ‚đă‘‚Ť‚ľ‚Č‚˘‚˝‚ß‚É setlocal ‚ˇ‚é
3 setlocal
4
5 SET plugins=no
6 SET rebuild=
7 SET release=
8
9 if "%1"=="/?" goto help
10 @echo on
11 if "%1"=="plugins" SET plugins=yes
12 if "%1"=="rebuild" SET rebuild=rebuild
13 if "%1"=="release" SET release=yes
14
15 CALL makechm.bat
16 CALL build.bat %rebuild%
17 if ERRORLEVEL 1 goto fail
18 set release_bak=%release%
19 CALL ..\buildtools\svnrev\sourcetree_info.bat
20 set release=%release_bak%
21
22 rem change folder name
23 if not "%release%"=="yes" goto snapshot
24 set dst=Output\teraterm-%VERSION%
25 goto create
26
27 :snapshot
28 set dst=snapshot-%DATE%_%TIME%
29
30 :create
31 del /s /q %dst%\*.*
32 mkdir %dst%
33
34 copy /y ..\teraterm\release\*.exe %dst%
35 copy /y ..\teraterm\release\*.dll %dst%
36 copy /y ..\ttssh2\ttxssh\Release\ttxssh.dll %dst%
37 copy /y ..\cygwin\cygterm\cygterm.cfg %dst%
38 copy /y "..\cygwin\cygterm\cygterm+.tar.gz" %dst%
39 copy /y "..\cygwin\cygterm\cygterm+-x86_64\cygterm.exe" %dst%
40 if not exist ..\cygwin\cygterm\msys2term\msys2term.exe goto msys2term_pass
41 copy /y ..\cygwin\cygterm\msys2term\msys2term.exe %dst%
42 copy /y ..\cygwin\cygterm\msys2term.cfg %dst%
43 :msys2term_pass
44 copy /y ..\cygwin\Release\cyglaunch.exe %dst%
45 copy /y ..\ttpmenu\Release\ttpmenu.exe %dst%
46 copy /y ..\TTProxy\Release\TTXProxy.dll %dst%
47 copy /y ..\TTXKanjiMenu\Release\ttxkanjimenu.dll %dst%
48 if "%plugins%"=="yes" copy /y ..\TTXSamples\Release\*.dll %dst%
49 if "%release%"=="yes" copy /y ..\TTXSamples\Release\*.dll %dst%
50
51 rem pdb files
52 del /s /q %dst%_pdb\*.*
53 mkdir %dst%_pdb
54
55 copy /y ..\teraterm\release\*.pdb %dst%_pdb
56 copy /y ..\ttssh2\ttxssh\Release\ttxssh.pdb %dst%_pdb
57 copy /y ..\ttpmenu\Release\ttxssh.pdb %dst%_pdb
58 copy /y ..\TTProxy\Release\TTXProxy.pdb %dst%_pdb
59 copy /y ..\TTXKanjiMenu\Release\ttxkanjimenu.pdb %dst%_pdb
60 if "%plugins%"=="yes" copy /y ..\TTXSamples\Release\*.pdb %dst%_pdb
61
62 if "%plugins%"=="yes" (
63 pushd %dst%
64 if exist TTXFixedWinSize.dll ren TTXFixedWinSize.dll _TTXFixedWinSize.dll
65 if exist TTXResizeWin.dll ren TTXResizeWin.dll _TTXResizeWin.dll
66 popd
67 )
68 if "%release%"=="yes" (
69 pushd %dst%
70 if exist TTXOutputBuffering.dll ren TTXOutputBuffering.dll _TTXOutputBuffering.dll
71 if exist TTXFixedWinSize.dll ren TTXFixedWinSize.dll _TTXFixedWinSize.dll
72 if exist TTXResizeWin.dll ren TTXResizeWin.dll _TTXResizeWin.dll
73 if exist TTXShowCommandLine.dll ren TTXShowCommandLine.dll _TTXShowCommandLine.dll
74 if exist TTXtest.dll ren TTXtest.dll _TTXtest.dll
75 popd
76 )
77
78 copy /y ..\doc\ja\teratermj.chm %dst%
79 copy /y ..\doc\en\teraterm.chm %dst%
80
81 copy /y release\*.* %dst%
82 copy /y release\IBMKEYB.CNF %dst%\KEYBOARD.CNF
83 xcopy /s /e /y /i /exclude:archive-exclude.txt release\theme %dst%\theme
84 xcopy /s /e /y /i /exclude:archive-exclude.txt release\plugin %dst%\plugin
85 xcopy /s /e /y /i /exclude:archive-exclude.txt release\lang %dst%\lang
86 xcopy /s /e /y /i /exclude:archive-exclude.txt release\lang_utf16le %dst%\lang_utf16le
87 del /f %dst%\lang\English.lng
88
89 perl setini.pl release\TERATERM.INI > %dst%\TERATERM.INI
90
91 if "%release%"=="yes" (
92 copy nul %dst%\ttpmenu.ini
93 copy nul %dst%\portable.ini
94 )
95
96 endlocal
97 exit /b
98
99 :help
100 echo Tera Term‚đƒrƒ‹ƒh‚ˇ‚é‚˝‚߂ɕK—v‚Čƒ\[ƒXƒR[ƒh‚đ‚ˇ‚×‚ÄƒRƒ“ƒpƒCƒ‹‚ľ‚Ü‚ˇB(Compiling ALL source codes)
101 echo.
102 echo %0 ’ʏí‚Ěƒrƒ‹ƒh(Normal building)
103 echo %0 rebuild ƒŠƒrƒ‹ƒh(Re-building)
104 echo %0 plugins ƒvƒ‰ƒOƒCƒ“î•ńŠÜ‚Ţƒrƒ‹ƒh(Building with all plugins)
105 echo %0 release ’ʏí‚Ěƒrƒ‹ƒh + ƒvƒ‰ƒOƒCƒ“‚đŠÜ‚Ţ + ƒtƒHƒ‹ƒ_–ź‚Ş“ÁŽę(Normal + Plugins building + unique folder naming)
106 echo ƒA[ƒJƒCƒu”ĹƒŠƒŠ[ƒXěŹ—p(for archive version released)
107 echo %0 rebuild ^>build.log 2^>^&1 ƒrƒ‹ƒhƒƒO‚đĚŽć‚ˇ‚é(Retrieve building log)
108 echo.
109 endlocal
110 exit /b
111
112 :fail
113 @echo off
114 echo ===================================================
115 echo ================= E R R O R =======================
116 echo ===================================================
117 echo.
118 echo ƒrƒ‹ƒh‚ÉŽ¸”s‚ľ‚Ü‚ľ‚˝ (Failed to build source code)
119 endlocal
120 exit /b
121

Properties

Name Value
svn:executable *

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