fome-fw/misc/git2svn.bat

50 lines
1.3 KiB
Batchfile
Raw Normal View History

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-20 16:10:17 -08:00
set RUSEFI_SVN_PATH=../../rusefi.svn/
2017-02-20 16:04:57 -08:00
2017-02-20 16:10:17 -08:00
ls -l %RUSEFI_SVN_PATH%
2017-02-23 07:56:27 -08:00
rd /s /q %RUSEFI_SVN_PATH%\firmware
rd /s /q %RUSEFI_SVN_PATH%\hardware
rd /s /q %RUSEFI_SVN_PATH%\java_console
rd /s /q %RUSEFI_SVN_PATH%\unit_tests
rd /s /q %RUSEFI_SVN_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%
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.*
rem cp -r README.* %RUSEFI_GIT_PATH%
rem cp -r readme.* %RUSEFI_GIT_PATH%
2017-02-20 16:04:57 -08:00
2017-02-20 16:10:17 -08:00
rem echo Going to git copy location
2017-02-20 16:04:57 -08:00
2017-02-20 16:20:31 -08:00
cd %RUSEFI_SVN_PATH%
2017-02-20 16:04:57 -08:00
2017-02-20 16:10:17 -08:00
rem git config --global user.email "russianefi@gmail.com"
rem git config --global user.name "rusEfi"
2017-02-20 16:04:57 -08:00
2017-02-20 16:10:17 -08:00
rem git pull
rem git add *
rem git commit -a -m "auto-sync"
rem git push --repo https://rusefi:PASSWORD@github.com/rusefi/rusefi
2017-02-20 16:20:31 -08:00
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