fome-fw/misc/git2svn.bat

43 lines
1.1 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-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-20 16:04:57 -08:00
rd /s /q %RUSEFI_GIT_PATH%\firmware
2017-02-20 16:10:17 -08:00
rem rd /s /q %RUSEFI_GIT_PATH%\hardware
rem rd /s /q %RUSEFI_GIT_PATH%\java_console
rem rd /s /q %RUSEFI_GIT_PATH%\unit_tests
rem rd /s /q %RUSEFI_GIT_PATH%\win32_functional_tests
2017-02-20 16:04:57 -08:00
2017-02-20 16:10:17 -08:00
cp -r firmware %RUSEFI_SVN_PATH%
cp -r hardware %RUSEFI_SVN_PATH%
rem cp -r java_console %RUSEFI_GIT_PATH%
rem cp -r unit_tests %RUSEFI_GIT_PATH%
rem cp -r win32_functional_tests %RUSEFI_GIT_PATH%
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:10:17 -08:00
rem cd %RUSEFI_GIT_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