rusefi-1/misc/jenkins/compile_other_versions/prepare_bundle.bat

24 lines
719 B
Batchfile
Raw Normal View History

2019-06-07 16:54:15 -07:00
set script_name=build_version.bat
2019-06-07 16:50:46 -07:00
echo Entering %script_name% with %bundle_name%
2019-11-20 20:00:55 -08:00
echo "RUSEFI_BUILD_FTP_USER=%RUSEFI_BUILD_FTP_USER%"
2019-06-01 10:47:15 -07:00
2019-11-20 16:46:46 -08:00
if %RUSEFI_BUILD_FTP_USER%.==. (
echo RUSEFI_BUILD_FTP_USER not set - not packaging
exit 0
)
2019-06-01 10:47:15 -07:00
2019-07-01 08:44:59 -07:00
rem This depends on Cygwin date copied under 'datecyg' name to avoid conflict with Windows date
rem By the way, '%%' is the way to escape % in batch files
rem this is copy-pasted at build_current_bundle.bat
for /f %%i in ('datecyg +%%Y%%m%%d_%%H%%M%%S') do set TIMESTAMP=%%i
2019-02-19 18:30:41 -08:00
2019-07-01 08:44:59 -07:00
set folder=snapshot_%TIMESTAMP%_%bundle_name%_rusefi
set folder=temp\%folder%
2019-02-19 18:30:41 -08:00
2020-06-06 14:26:39 -07:00
set bundle_full_name=rusefi_bundle_%bundle_name%
2020-06-06 14:17:33 -07:00
2019-02-19 18:30:41 -08:00
call misc\jenkins\build_working_folder.bat
2019-06-01 10:47:15 -07:00
pwd
echo "exiting %script_name%"