Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tag_build.bat works with git
  • Loading branch information
alabuzhev committed Oct 22, 2017
1 parent ff43b85 commit d8934e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions far/tag_build.bat
Expand Up @@ -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 --------------------------------------------------------------------
Expand All @@ -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 (
Expand All @@ -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
Expand Down

0 comments on commit d8934e0

Please sign in to comment.