Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/installer/makearchive.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10580 - (show annotations) (download) (as text)
Sun Feb 5 15:34:47 2023 UTC (13 months ago) by zmatsuo
File MIME type: application/x-msdos-program
File size: 3887 byte(s)
ビルド時 tt-version.h のバージョン情報を元とするよう修正

- teraterm.iss, svnrev.pl 内にバージョン情報があった
- tt-version.h を元とするようにした
- svnrev.pl
  - tt-version.h からバージョン番号を取得するようにした
- issversion.pl を削除
  - teraterm.iss からバージョン番号を取得するために使用していた
  - tt-version.h のバージョン番号を元とするようにしたため不要となった
- makearchive.bat
  - issversion.pl の使用をやめた
  - svnrev.pl の sourcetree_info.bat を元に出力フォルダを決めるようにした
- release.bat
  - issversion.pl の使用をやめた
- iscc.bat, teraterm.iss
  - インストーラ,zipの作成部分を release.bat から切り出した
  - インストーラ(iscc.exe)に引数でバージョン番号を渡せるようにした
1 @echo off
2
3 SET plugins=no
4 SET rebuild=
5 SET release=
6
7 if "%1"=="/?" goto help
8 @echo on
9 if "%1"=="plugins" SET plugins=yes
10 if "%1"=="rebuild" SET rebuild=rebuild
11 if "%1"=="release" SET release=yes
12
13 CALL makechm.bat
14 CALL build.bat %rebuild%
15 if ERRORLEVEL 1 goto fail
16 set release_bak=%release%
17 CALL ..\buildtools\svnrev\sourcetree_info.bat
18 set release=%release_bak%
19
20 rem change folder name
21 if not "%release%"=="yes" goto snapshot
22 set dst=Output\teraterm-%VERSION%
23 goto create
24
25 :snapshot
26 set dst=snapshot-%DATE%_%TIME%
27
28 :create
29 del /s /q %dst%\*.*
30 mkdir %dst%
31
32 copy /y ..\teraterm\release\*.exe %dst%
33 copy /y ..\teraterm\release\*.dll %dst%
34 copy /y ..\ttssh2\ttxssh\Release\ttxssh.dll %dst%
35 copy /y ..\cygwin\cygterm\cygterm.cfg %dst%
36 copy /y "..\cygwin\cygterm\cygterm+.tar.gz" %dst%
37 copy /y "..\cygwin\cygterm\cygterm+-x86_64\cygterm.exe" %dst%
38 if not exist ..\cygwin\cygterm\msys2term\msys2term.exe goto msys2term_pass
39 copy /y ..\cygwin\cygterm\msys2term\msys2term.exe %dst%
40 copy /y ..\cygwin\cygterm\msys2term.cfg %dst%
41 :msys2term_pass
42 copy /y ..\cygwin\Release\cyglaunch.exe %dst%
43 copy /y ..\ttpmenu\Release\ttpmenu.exe %dst%
44 copy /y ..\TTProxy\Release\TTXProxy.dll %dst%
45 copy /y ..\TTXKanjiMenu\Release\ttxkanjimenu.dll %dst%
46 if "%plugins%"=="yes" copy /y ..\TTXSamples\Release\*.dll %dst%
47 if "%release%"=="yes" copy /y ..\TTXSamples\Release\*.dll %dst%
48
49 rem pdb files
50 del /s /q %dst%_pdb\*.*
51 mkdir %dst%_pdb
52
53 copy /y ..\teraterm\release\*.pdb %dst%_pdb
54 copy /y ..\ttssh2\ttxssh\Release\ttxssh.pdb %dst%_pdb
55 copy /y ..\ttpmenu\Release\ttxssh.pdb %dst%_pdb
56 copy /y ..\TTProxy\Release\TTXProxy.pdb %dst%_pdb
57 copy /y ..\TTXKanjiMenu\Release\ttxkanjimenu.pdb %dst%_pdb
58 if "%plugins%"=="yes" copy /y ..\TTXSamples\Release\*.pdb %dst%_pdb
59
60 if "%plugins%"=="yes" (
61 pushd %dst%
62 if exist TTXFixedWinSize.dll ren TTXFixedWinSize.dll _TTXFixedWinSize.dll
63 if exist TTXResizeWin.dll ren TTXResizeWin.dll _TTXResizeWin.dll
64 popd
65 )
66 if "%release%"=="yes" (
67 pushd %dst%
68 if exist TTXOutputBuffering.dll ren TTXOutputBuffering.dll _TTXOutputBuffering.dll
69 if exist TTXFixedWinSize.dll ren TTXFixedWinSize.dll _TTXFixedWinSize.dll
70 if exist TTXResizeWin.dll ren TTXResizeWin.dll _TTXResizeWin.dll
71 if exist TTXShowCommandLine.dll ren TTXShowCommandLine.dll _TTXShowCommandLine.dll
72 if exist TTXtest.dll ren TTXtest.dll _TTXtest.dll
73 popd
74 )
75
76 copy /y ..\doc\ja\teratermj.chm %dst%
77 copy /y ..\doc\en\teraterm.chm %dst%
78
79 copy /y release\*.* %dst%
80 copy /y release\EDITOR.CNF %dst%\KEYBOARD.CNF
81 xcopy /s /e /y /i /exclude:archive-exclude.txt release\theme %dst%\theme
82 xcopy /s /e /y /i /exclude:archive-exclude.txt release\plugin %dst%\plugin
83 xcopy /s /e /y /i /exclude:archive-exclude.txt release\lang %dst%\lang
84 xcopy /s /e /y /i /exclude:archive-exclude.txt release\lang_utf16le %dst%\lang_utf16le
85 del /f %dst%\lang\English.lng
86
87 perl setini.pl release\TERATERM.INI > %dst%\TERATERM.INI
88
89 if "%release%"=="yes" (
90 copy nul %dst%\ttpmenu.ini
91 copy nul %dst%\portable.ini
92 )
93
94 exit /b
95
96 :help
97 echo Tera Term���r���h�����������K�v���\�[�X�R�[�h���������R���p�C���������B(Compiling ALL source codes)
98 echo.
99 echo %0 �������r���h(Normal building)
100 echo %0 rebuild ���r���h(Re-building)
101 echo %0 plugins �v���O�C�����������r���h(Building with all plugins)
102 echo %0 release �������r���h + �v���O�C�������� + �t�H���_��������(Normal + Plugins building + unique folder naming)
103 echo �A�[�J�C�u�������[�X�����p(for archive version released)
104 echo %0 rebuild ^>build.log 2^>^&1 �r���h���O����������(Retrieve building log)
105 echo.
106 exit /b
107
108 :fail
109 @echo off
110 echo ===================================================
111 echo ================= E R R O R =======================
112 echo ===================================================
113 echo.
114 echo �r���h�����s�������� (Failed to build source code)
115 exit /b
116

Properties

Name Value
svn:executable *

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