Added script for svn repo mirroring.

Updated deliv config files.
This commit is contained in:
2018-09-24 11:26:56 +02:00
parent 6ef4f1e8a8
commit ffa5f06e3d
21 changed files with 377 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
setlocal
call %~dp0config.bat
set REPO_NAME=%1
set REPO_URL=%2
set REPO_DIR=mirrors\svn\%1
set REPO_LOCAL=file:///%REPO_ROOT%/svn/%REPO_NAME%
rd /q/s %REPO_DIR%
svnadmin create %REPO_DIR%
copy _hooks\*.cmd %REPO_DIR%\hooks\.
svnsync init --sync-username svnsync "%REPO_LOCAL%" %REPO_URL%
echo svnsync sync "%REPO_LOCAL%" > mirrors\svn\sync_%REPO_NAME%.bat