| 10 |
call :setup_tools_env |
call :setup_tools_env |
| 11 |
|
|
| 12 |
echo ======= |
echo ======= |
| 13 |
echo 1. force download and rebuild libs / rebuild Tera Term, installer, archive (for Release build) |
echo 1. force download and rebuild libs / rebuild Tera Term, installer, archive |
| 14 |
echo 2. download and build libs / rebuild Tera Term, installer, archive (for Release build) |
echo 2. download and build libs / rebuild Tera Term, installer, archive |
| 15 |
echo 3. download and build libs / build Tera Term, installer, archive (for snapshot) |
echo 3. download and build libs |
| 16 |
echo 4. download and build libs |
echo 4. build libs and rebuild Tera Term, installer, archive (for Release build) |
| 17 |
echo 5. build libs / rebuild Tera Term, installer, archive (for Release build) |
echo 5. build libs and Tera Term (for Normal build, snapshot) |
|
echo 6. build libs / build Tera Term, installer, archive (for snapshot) |
|
| 18 |
echo 7. exec cmd.exe |
echo 7. exec cmd.exe |
| 19 |
echo 8. check tools |
echo 8. check tools |
| 20 |
echo 9. exit |
echo 9. exit |
| 28 |
|
|
| 29 |
if "%no%" == "1" ( |
if "%no%" == "1" ( |
| 30 |
call :download_libs force |
call :download_libs force |
|
call :build_libs |
|
| 31 |
call :build_teraterm freeze_state |
call :build_teraterm freeze_state |
| 32 |
) |
) |
| 33 |
|
|
| 40 |
if "%no%" == "3" ( |
if "%no%" == "3" ( |
| 41 |
call :download_libs |
call :download_libs |
| 42 |
call :build_libs |
call :build_libs |
|
call :build_teraterm |
|
| 43 |
) |
) |
| 44 |
|
|
| 45 |
if "%no%" == "4" ( |
if "%no%" == "4" ( |
|
call :download_libs |
|
|
call :build_libs |
|
|
) |
|
|
|
|
|
if "%no%" == "5" ( |
|
| 46 |
call :build_teraterm freeze_state |
call :build_teraterm freeze_state |
| 47 |
) |
) |
| 48 |
|
|
| 49 |
if "%no%" == "6" ( |
if "%no%" == "5" ( |
| 50 |
call :build_teraterm |
call :build_teraterm |
| 51 |
) |
) |
| 52 |
|
|
| 94 |
|
|
| 95 |
call ..\buildtools\svnrev\sourcetree_info.bat |
call ..\buildtools\svnrev\sourcetree_info.bat |
| 96 |
if "%1" == "freeze_state" ( |
if "%1" == "freeze_state" ( |
| 97 |
set RELEASE=1 |
call build.bat rebuild |
| 98 |
) |
call makearchive.bat release |
| 99 |
setlocal |
) else if "%RELEASE%" == "1" ( |
|
if "%RELEASE%" == "1" ( |
|
| 100 |
call build.bat rebuild |
call build.bat rebuild |
| 101 |
call makearchive.bat release |
call makearchive.bat release |
| 102 |
) else ( |
) else ( |
| 103 |
call makearchive.bat |
call makearchive.bat |
| 104 |
) |
) |
|
endlocal |
|
| 105 |
if not exist Output mkdir Output |
if not exist Output mkdir Output |
| 106 |
set SNAPSHOT_PORTABLE_OUTPUT="teraterm-%TT_VERSION%-r%SVNVERSION%-%DATE%_%TIME%-%USERNAME%-snapshot" |
set SNAPSHOT_PORTABLE_OUTPUT="teraterm-%TT_VERSION%-r%SVNVERSION%-%DATE%_%TIME%-%USERNAME%-snapshot" |
| 107 |
if "%RELEASE%" == "1" ( |
if "%RELEASE%" == "1" ( |
|
echo release |
|
| 108 |
pushd Output |
pushd Output |
| 109 |
%CMAKE% -E tar cf teraterm-%TT_VERSION%.zip --format=zip teraterm-%TT_VERSION%/ |
%CMAKE% -E tar cf teraterm-%TT_VERSION%.zip --format=zip teraterm-%TT_VERSION%/ |
| 110 |
popd |
popd |
| 111 |
set INNO_SETUP_OPT_VERSION= |
set INNO_SETUP_OPT_VERSION= |
| 112 |
set INNO_SETUP_OPT_OUTPUT= |
set INNO_SETUP_OPT_OUTPUT= |
| 113 |
) else ( |
) else ( |
|
echo snapshot |
|
|
dir |
|
| 114 |
%CMAKE% -E rename snapshot-%DATE%_%TIME% %SNAPSHOT_PORTABLE_OUTPUT% |
%CMAKE% -E rename snapshot-%DATE%_%TIME% %SNAPSHOT_PORTABLE_OUTPUT% |
| 115 |
%CMAKE% -E tar cf Output/%SNAPSHOT_PORTABLE_OUTPUT%.zip --format=zip %SNAPSHOT_PORTABLE_OUTPUT% |
%CMAKE% -E tar cf Output/%SNAPSHOT_PORTABLE_OUTPUT%.zip --format=zip %SNAPSHOT_PORTABLE_OUTPUT% |
| 116 |
%CMAKE% -E rename %SNAPSHOT_PORTABLE_OUTPUT% snapshot-%DATE%_%TIME% |
%CMAKE% -E rename %SNAPSHOT_PORTABLE_OUTPUT% snapshot-%DATE%_%TIME% |