66 lines
1.9 KiB
Batchfile
66 lines
1.9 KiB
Batchfile
set script_name=build_working_folder.bat
|
|
echo Entering %script_name%
|
|
|
|
pwd
|
|
echo %script_name%: Working folder: %folder%
|
|
mkdir %folder%
|
|
set console_folder=%folder%\console
|
|
mkdir %console_folder%
|
|
ls -l %folder%
|
|
|
|
if %ini_file_override%.==. (
|
|
set ini_file_override=rusefi.ini
|
|
echo %script_name%: No ini_file_override specified
|
|
)
|
|
echo %script_name%: Will use %ini_file_override%
|
|
|
|
cp java_console_binary/rusefi_console.jar %console_folder%
|
|
cp simulator/build/rusefi_simulator.exe %console_folder%
|
|
cp misc/console_launcher/rusefi_console.exe %console_folder%
|
|
cp java_console/rusefi.xml %console_folder%
|
|
|
|
cp misc/console_launcher/readme.html %folder%
|
|
|
|
cp firmware/tunerstudio/%ini_file_override% %folder%
|
|
rem Unsetting since would not be used anywhere else
|
|
set ini_file_override=
|
|
|
|
rem users probably do not really care for this file
|
|
rem cp firmware/svnversion.h %folder%
|
|
|
|
cp -r misc/install/openocd %console_folder%
|
|
rem 407 has additional version of firmware
|
|
cp firmware/deliver/rusefi_no_asserts.bin %folder%
|
|
cp firmware/deliver/rusefi_no_asserts.dfu %folder%
|
|
rem 746 builds one version at the moment
|
|
rem probably not needed cp firmware/build/rusefi.hex %folder%
|
|
cp firmware/build/rusefi.bin %folder%
|
|
rem probably not needed cp firmware/build/rusefi.elf %folder%
|
|
cp firmware/build/rusefi.dfu %folder%
|
|
|
|
|
|
cd temp
|
|
echo "Please copy find.exe to findcyg.exe in cygwin folder"
|
|
findcyg . -name '.svn' > folders_to_delete.txt
|
|
IF NOT ERRORLEVEL 0 echo %script_name%: ERROR INVOKING findcyg
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
echo "Deleting .svn"
|
|
xargs rm -rf < folders_to_delete.txt
|
|
echo "%script_name%: Deleted .svn"
|
|
rm -rf folders_to_delete.txt
|
|
|
|
echo "Building bundle"
|
|
pwd
|
|
set zip_name=rusefi_bundle.zip
|
|
zip -r %zip_name% *
|
|
IF NOT ERRORLEVEL 0 echo %script_name%: ERROR INVOKING zip
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
echo %script_name%: Bundle %zip_name% ready
|
|
ls -l %zip_name%
|
|
cd ..
|
|
echo "%script_name%: We are back in root directory"
|
|
|
|
pwd
|
|
echo Exiting %script_name% |