diff --git a/misc/git2svn.bat b/misc/git2svn.bat new file mode 100644 index 0000000000..18ba7a22d8 --- /dev/null +++ b/misc/git2svn.bat @@ -0,0 +1,42 @@ + + +echo This script should be executed from the root of rusEfi master GITHUB local copy +pwd + +echo Updating from SVN +call svn update + +set RUSEFI_GIT_PATH=../rusefi.github/rusefi + + + +ls -l %RUSEFI_GIT_PATH% +rd /s /q %RUSEFI_GIT_PATH%\firmware +rd /s /q %RUSEFI_GIT_PATH%\hardware +rd /s /q %RUSEFI_GIT_PATH%\java_console +rd /s /q %RUSEFI_GIT_PATH%\unit_tests +rd /s /q %RUSEFI_GIT_PATH%\win32_functional_tests + +cp -r firmware %RUSEFI_GIT_PATH% +cp -r hardware %RUSEFI_GIT_PATH% +cp -r java_console %RUSEFI_GIT_PATH% +cp -r unit_tests %RUSEFI_GIT_PATH% +cp -r win32_functional_tests %RUSEFI_GIT_PATH% +rm -f %RUSEFI_GIT_PATH%/readme.* +rm -f %RUSEFI_GIT_PATH%/README.* +cp -r README.* %RUSEFI_GIT_PATH% +cp -r readme.* %RUSEFI_GIT_PATH% + + +echo Going to git copy location + + +cd %RUSEFI_GIT_PATH% + +git config --global user.email "russianefi@gmail.com" +git config --global user.name "rusEfi" + +git pull +git add * +git commit -a -m "auto-sync" +git push --repo https://rusefi:PASSWORD@github.com/rusefi/rusefi diff --git a/misc/git2svn_init.bat b/misc/git2svn_init.bat new file mode 100644 index 0000000000..c153765ca7 --- /dev/null +++ b/misc/git2svn_init.bat @@ -0,0 +1,11 @@ +rd /s /q c:\stuff\rusefi.git2svn + + +mkdir -p c:\stuff\rusefi.git2svn\rusefi.svn +cd c:\stuff\rusefi.git2svn\rusefi.svn +svn co https://svn.code.sf.net/p/rusefi/code/trunk/ . + + +mkdir -p c:\stuff\rusefi.git2svn\rusefi.github +cd c:\stuff\rusefi.git2svn\rusefi.github +git clone https://github.com/rusefi/rusefi.git diff --git a/misc/svn2git.bat b/misc/svn2git.bat index 14287f2626..26ffbf7e87 100644 --- a/misc/svn2git.bat +++ b/misc/svn2git.bat @@ -1,9 +1,3 @@ -rem mkdir -p c:\stuff\rusefi.svn2git\rusefi.svn -rem mkdir -p c:\stuff\rusefi.svn2git\rusefi.github -rem cd c:\stuff\rusefi.svn2git\rusefi.svn -rem svn co https://svn.code.sf.net/p/rusefi/code/trunk/ . -rem cd c:\stuff\rusefi.svn2git\rusefi.github -rem git clone https://github.com/rusefi/rusefi.git echo This script should be executed from the root of rusEfi trunk SVN local copy diff --git a/misc/svn2git_init.bat b/misc/svn2git_init.bat new file mode 100644 index 0000000000..a1a23bf9b5 --- /dev/null +++ b/misc/svn2git_init.bat @@ -0,0 +1,9 @@ +rd /s /q c:\stuff\rusefi.svn2git + +mkdir -p c:\stuff\rusefi.svn2git\rusefi.svn +cd c:\stuff\rusefi.svn2git\rusefi.svn +svn co https://svn.code.sf.net/p/rusefi/code/trunk/ . + +mkdir -p c:\stuff\rusefi.svn2git\rusefi.github +cd c:\stuff\rusefi.svn2git\rusefi.github +git clone https://github.com/rusefi/rusefi.git