Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/installer/makearchive.bat

Parent Directory Parent Directory | Revision Log Revision Log


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

ticket: #48846
1 yutakapon 4535 @echo off
2 nmaya 11007 rem ‚ą‚ĚŠO‚Ĺ set ‚ł‚ę‚˝ RELEASE ‚đă‘‚Ť‚ľ‚Č‚˘‚˝‚ß‚É setlocal ‚ˇ‚é
3     setlocal
4 maya 3227
5     SET plugins=no
6 maya 4614 SET rebuild=
7     SET release=
8 maya 3227
9 yutakapon 4535 if "%1"=="/?" goto help
10     @echo on
11 maya 3227 if "%1"=="plugins" SET plugins=yes
12 maya 4614 if "%1"=="rebuild" SET rebuild=rebuild
13     if "%1"=="release" SET release=yes
14 maya 3227
15     CALL makechm.bat
16 maya 4614 CALL build.bat %rebuild%
17 yutakapon 6124 if ERRORLEVEL 1 goto fail
18 zmatsuo 9791 set release_bak=%release%
19     CALL ..\buildtools\svnrev\sourcetree_info.bat
20     set release=%release_bak%
21 maya 3227
22 maya 4614 rem change folder name
23     if not "%release%"=="yes" goto snapshot
24 zmatsuo 10580 set dst=Output\teraterm-%VERSION%
25 maya 4614 goto create
26    
27     :snapshot
28 zmatsuo 9791 set dst=snapshot-%DATE%_%TIME%
29 yutakapon 5363
30 maya 3227 :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 zmatsuo 9516 copy /y ..\cygwin\cygterm\cygterm.cfg %dst%
38     copy /y "..\cygwin\cygterm\cygterm+.tar.gz" %dst%
39 zmatsuo 9795 copy /y "..\cygwin\cygterm\cygterm+-x86_64\cygterm.exe" %dst%
40 zmatsuo 10251 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 zmatsuo 9516 copy /y ..\cygwin\Release\cyglaunch.exe %dst%
45 maya 3227 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 maya 4614 if "%release%"=="yes" copy /y ..\TTXSamples\Release\*.dll %dst%
50 maya 3227
51 zmatsuo 10166 rem pdb files
52     del /s /q %dst%_pdb\*.*
53     mkdir %dst%_pdb
54 maya 3227
55 zmatsuo 10166 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 maya 3227 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 maya 4614 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 maya 3227
78 maya 3292 copy /y ..\doc\ja\teratermj.chm %dst%
79 maya 3227 copy /y ..\doc\en\teraterm.chm %dst%
80    
81     copy /y release\*.* %dst%
82 nmaya 10829 copy /y release\IBMKEYB.CNF %dst%\KEYBOARD.CNF
83 doda 3237 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 doda 8445 xcopy /s /e /y /i /exclude:archive-exclude.txt release\lang_utf16le %dst%\lang_utf16le
87 maya 3227 del /f %dst%\lang\English.lng
88    
89     perl setini.pl release\TERATERM.INI > %dst%\TERATERM.INI
90 yutakapon 4535
91 maya 4774 if "%release%"=="yes" (
92     copy nul %dst%\ttpmenu.ini
93 zmatsuo 9727 copy nul %dst%\portable.ini
94 maya 4774 )
95    
96 nmaya 11007 endlocal
97 yutakapon 4535 exit /b
98    
99     :help
100 yutakapon 5356 echo Tera Term‚đƒrƒ‹ƒh‚ˇ‚é‚˝‚߂ɕK—v‚Čƒ\[ƒXƒR[ƒh‚đ‚ˇ‚×‚ÄƒRƒ“ƒpƒCƒ‹‚ľ‚Ü‚ˇB(Compiling ALL source codes)
101 yutakapon 4535 echo.
102 yutakapon 5356 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 yutakapon 4535 echo.
109 nmaya 11007 endlocal
110 yutakapon 4535 exit /b
111    
112 yutakapon 6124 :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 nmaya 11007 endlocal
120 yutakapon 6124 exit /b
121    

Properties

Name Value
svn:executable *

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