Skip to content
Permalink
Browse files

tag_build.bat works with git

  • Loading branch information...
alabuzhev committed Oct 22, 2017
1 parent ff43b85 commit d8934e08eea56f98a5198a345e29802a89f5b621
Showing with 5 additions and 5 deletions.
  1. +5 −5 far/tag_build.bat
@@ -7,21 +7,21 @@ for /f "tokens=1,2,4 delims=," %%i in ('tools\m4 -P farversion.inc.m4') do (
set build=%%k
)

set tag=%major%.%minor%.%build%
set tag=builds/%major%.%minor%.%build%

echo --------------------------------------------------------------------
echo Continue only if you are sure that you have set the correct
echo build and commited the changes.
echo This command will tag the current state of the repository as:
echo builds/%tag%
echo %tag%
echo --------------------------------------------------------------------
echo If you're not sure press CtrlC.
echo --------------------------------------------------------------------
echo --------------------------------------------------------------------
echo à®¤®«¦ ©â¥ ⮫쪮 ¥á«¨ ¢ë 㢥७ë, çâ® ¢ë ¢ëáâ ¢¨«¨ ¯à ¢¨«ì­ë©
echo ­®¬¥à ¡¨«¤  ¨ § ª®¬¬¨â¨«¨ ¨§¬¥­¥­¨ï.
echo â  ª®¬ ­¤  ¯®¬¥â¨â ⥪ã饥 á®áâ®ï­¨¥ ९®§¨â®à¨ï ª ª:
echo builds/%tag%
echo %tag%
echo --------------------------------------------------------------------
echo …᫨ ¢ë ­¥ 㢥७ë, â® ­ ¦¬¨â¥ CtrlC
echo --------------------------------------------------------------------
@@ -31,7 +31,7 @@ echo.
for /f "tokens=3" %%f in ('svn info 2^>nul ^| find "Root:"') do set repo=%%f
if [%repo%] == [] goto git

set tag_path=%repo%/tags/builds/%tag%
set tag_path=%repo%/tags/%tag%

svn info %tag_path% > nul 2>&1 & (
if not errorlevel 1 (
@@ -43,7 +43,7 @@ svn info %tag_path% > nul 2>&1 & (
goto finish

:git
echo Sorry, git version is not yet implemented - you have to do it manually.
git fetch && git tag %tag% origin/master && git push origin %tag%
goto finish

:finish

0 comments on commit d8934e0

Please sign in to comment.
You can’t perform that action at this time.