| 6 |
set VS_VERSION=2019 |
set VS_VERSION=2019 |
| 7 |
|
|
| 8 |
if "%APPVEYOR%" == "True" set NOPAUSE=1 |
if "%APPVEYOR%" == "True" set NOPAUSE=1 |
| 9 |
|
if exist ..\buildtools\svnrev\sourcetree_info.bat del ..\buildtools\svnrev\sourcetree_info.bat |
| 10 |
|
|
| 11 |
call :setup_tools_env |
call :setup_tools_env |
| 12 |
|
|
| 101 |
set TT_VERSION= |
set TT_VERSION= |
| 102 |
for /f "delims=" %%i in ('perl issversion.pl') do @set TT_VERSION=%%i |
for /f "delims=" %%i in ('perl issversion.pl') do @set TT_VERSION=%%i |
| 103 |
|
|
|
call ..\buildtools\svnrev\sourcetree_info.bat |
|
| 104 |
if "%RELEASE%" == "1" ( |
if "%RELEASE%" == "1" ( |
| 105 |
call build.bat rebuild |
call build.bat rebuild |
| 106 |
call makearchive.bat release |
call makearchive.bat release |
| 115 |
if "%RELEASE%" == "1" ( |
if "%RELEASE%" == "1" ( |
| 116 |
pushd Output |
pushd Output |
| 117 |
%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%/ |
| 118 |
|
%CMAKE% -E tar cf teraterm-%TT_VERSION%_pdb.zip --format=zip teraterm-%TT_VERSION%_pdb/ |
| 119 |
popd |
popd |
| 120 |
set INNO_SETUP_OPT_VERSION= |
set INNO_SETUP_OPT_VERSION= |
| 121 |
set INNO_SETUP_OPT_OUTPUT= |
set INNO_SETUP_OPT_OUTPUT= |
| 122 |
) else ( |
) else ( |
| 123 |
%CMAKE% -E rename snapshot-%DATE%_%TIME% %SNAPSHOT_PORTABLE_OUTPUT% |
%CMAKE% -E rename snapshot-%DATE%_%TIME% %SNAPSHOT_PORTABLE_OUTPUT% |
| 124 |
|
%CMAKE% -E rename snapshot-%DATE%_%TIME%_pdb %SNAPSHOT_PORTABLE_OUTPUT%_pdb |
| 125 |
%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% |
| 126 |
|
%CMAKE% -E tar cf Output/%SNAPSHOT_PORTABLE_OUTPUT%_pdb.zip --format=zip %SNAPSHOT_PORTABLE_OUTPUT%_pdb |
| 127 |
%CMAKE% -E rename %SNAPSHOT_PORTABLE_OUTPUT% snapshot-%DATE%_%TIME% |
%CMAKE% -E rename %SNAPSHOT_PORTABLE_OUTPUT% snapshot-%DATE%_%TIME% |
| 128 |
|
%CMAKE% -E rename %SNAPSHOT_PORTABLE_OUTPUT%_pdb snapshot-%DATE%_%TIME%_pdb |
| 129 |
set INNO_SETUP_OPT_VERSION="/DVerSubStr=r%SVNVERSION%-%DATE%_%TIME%" |
set INNO_SETUP_OPT_VERSION="/DVerSubStr=r%SVNVERSION%-%DATE%_%TIME%" |
| 130 |
set INNO_SETUP_OPT_OUTPUT="/DOutputSubStr=r%SVNVERSION%-%DATE%_%TIME%-%USERNAME%-snapshot" |
set INNO_SETUP_OPT_OUTPUT="/DOutputSubStr=r%SVNVERSION%-%DATE%_%TIME%-%USERNAME%-snapshot" |
| 131 |
) |
) |
| 137 |
rem #################### |
rem #################### |
| 138 |
:setup_tools_env |
:setup_tools_env |
| 139 |
|
|
|
set CURL=%SystemRoot%\System32\curl.exe |
|
| 140 |
set CYGWIN_PATH=C:\cygwin64\bin |
set CYGWIN_PATH=C:\cygwin64\bin |
| 141 |
set VS_BASE=C:\Program Files (x86)\Microsoft Visual Studio\%VS_VERSION% |
set VS_BASE=C:\Program Files (x86)\Microsoft Visual Studio\%VS_VERSION% |
| 142 |
|
|
| 283 |
echo VS_BASE=%VS_BASE% |
echo VS_BASE=%VS_BASE% |
| 284 |
cl |
cl |
| 285 |
|
|
|
echo curl |
|
|
where curl |
|
|
echo CURL=%CURL% |
|
|
%CURL% --version |
|
|
|
|
| 286 |
echo svn |
echo svn |
| 287 |
where svn |
where svn |
| 288 |
echo SVN_PATH=%SVN_PATH% |
echo SVN_PATH=%SVN_PATH% |