2017-02-20 16:04:57 -08:00
|
|
|
|
|
|
|
|
|
|
|
echo This script should be executed from the root of rusEfi master GITHUB local copy
|
|
|
|
pwd
|
|
|
|
|
|
|
|
echo Updating from SVN
|
2017-02-20 16:10:17 -08:00
|
|
|
call git pull
|
2017-02-21 20:09:35 -08:00
|
|
|
IF NOT ERRORLEVEL echo ERROR git pull-ing
|
|
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
|
2017-02-20 16:04:57 -08:00
|
|
|
|
2017-02-23 21:42:21 -08:00
|
|
|
set RUSEFI_SVN_PATH=../../svn/
|
|
|
|
set RUSEFI_SVN_W_PATH=..\..\svn
|
2017-02-24 08:14:18 -08:00
|
|
|
set RUSEFI_GIT_PATH=../git/rusefi
|
|
|
|
|
|
|
|
|
|
|
|
cd %RUSEFI_SVN_PATH%
|
|
|
|
svn up
|
|
|
|
cd %RUSEFI_GIT_PATH%
|
2017-02-20 16:04:57 -08:00
|
|
|
|
|
|
|
|
2017-02-20 16:10:17 -08:00
|
|
|
ls -l %RUSEFI_SVN_PATH%
|
2017-02-23 08:04:15 -08:00
|
|
|
rd /s /q %RUSEFI_SVN_W_PATH%\firmware
|
|
|
|
rd /s /q %RUSEFI_SVN_W_PATH%\hardware
|
|
|
|
rd /s /q %RUSEFI_SVN_W_PATH%\java_console
|
|
|
|
rd /s /q %RUSEFI_SVN_W_PATH%\unit_tests
|
|
|
|
rd /s /q %RUSEFI_SVN_W_PATH%\misc
|
|
|
|
rd /s /q %RUSEFI_SVN_W_PATH%\win32_functional_tests
|
2017-02-20 16:04:57 -08:00
|
|
|
|
2017-02-20 16:20:31 -08:00
|
|
|
cp -r firmware %RUSEFI_SVN_PATH%
|
2017-02-21 20:15:46 -08:00
|
|
|
cp -r hardware %RUSEFI_SVN_PATH%
|
2017-02-20 16:20:31 -08:00
|
|
|
cp -r java_console %RUSEFI_SVN_PATH%
|
|
|
|
cp -r unit_tests %RUSEFI_SVN_PATH%
|
2017-02-23 07:58:45 -08:00
|
|
|
cp -r misc %RUSEFI_SVN_PATH%
|
2017-02-20 16:20:31 -08:00
|
|
|
cp -r win32_functional_tests %RUSEFI_SVN_PATH%
|
2017-02-20 16:10:17 -08:00
|
|
|
rem rm -f %RUSEFI_GIT_PATH%/readme.*
|
|
|
|
rem rm -f %RUSEFI_GIT_PATH%/README.*
|
2017-02-23 13:38:07 -08:00
|
|
|
cp -r README.* %RUSEFI_SVN_PATH%
|
|
|
|
cp -r readme.* %RUSEFI_SVN_PATH%
|
2017-02-20 16:04:57 -08:00
|
|
|
|
|
|
|
|
2017-02-20 16:20:31 -08:00
|
|
|
cd %RUSEFI_SVN_PATH%
|
2017-02-24 05:22:35 -08:00
|
|
|
pwd
|
2017-02-20 16:04:57 -08:00
|
|
|
|
2017-03-01 11:48:01 -08:00
|
|
|
rem http://stackoverflow.com/questions/2120844/how-do-i-add-all-new-files-to-svn
|
|
|
|
svn add --force .
|
|
|
|
|
2017-02-20 17:07:59 -08:00
|
|
|
svn ci --no-auth-cache --non-interactive --username rusefi --password %RUSEFI_SVN_PASSWORD% -m "auto-merge from github"
|
|
|
|
|
2017-02-20 16:20:31 -08:00
|
|
|
|