Index: scripts/internal/svntag_single.bat =================================================================== diff -u -N --- scripts/internal/svntag_single.bat (revision 03340b954ead8138d669ee4f8df7124dc84c5612) +++ scripts/internal/svntag_single.bat (revision 0) @@ -1,48 +0,0 @@ -@echo off - -setlocal - -if [%1] == [] ( - echo Usage: svntag_single.bat ReposAddress TextVersion - exit /b 1 -) - -SET ReposAddress=%1 -SET TextVersion=%2 - -call config.bat -if errorlevel 1 ( - exit /b 1 -) - -rem partial cleanup -SET CHTmpDir=%TmpDir%\repo-tag-test -if exist "%CHTmpDir%" ( - rmdir /S /Q "%CHTmpDir%" >nul - if exist "%CHTmpDir%" ( - echo ERROR: Deleting the old temporary folder failed. - exit /b 1 - ) -) - -rem check if the project isn't already tagged -svn co "%ReposAddress%/tags/%TextVersion%" "%CHTmpDir%" 2>nul -if errorlevel 1 ( - rem when error, it probably means that the tag does not exist - goto create -) - -rem if we're here, then the tag already exist -echo * The repository already had a tag %TextVersion%. Skipping tagging. -exit /b 0 - -:create -echo * Tagging %ReposAddress% as %TextVersion%... -svn cp -m "Tagged project to %TextVersion%" "%ReposAddress%/trunk/" "%ReposAddress%/tags/%TextVersion%" >"%TmpDir%\command.log" -if errorlevel 1 ( - echo ERROR: encountered a problem while tagging %ReposAddress% project. See the log below: - type "%TmpDir%\command.log" - exit /b 1 -) - -exit /b 0