Mercurial > vim-gutentags
changeset 275:83b57b04ad56
fix missing update_gtags.cmd
author | skywind3000 <skywind3000@163.com> |
---|---|
date | Sat, 08 Oct 2022 22:00:54 +0800 |
parents | efe305d995a0 |
children | 0ebd3b1710aa |
files | plat/win32/update_gtags.cmd |
diffstat | 1 files changed, 50 insertions(+), 57 deletions(-) [+] |
line wrap: on
line diff
--- a/plat/win32/update_gtags.cmd Thu Aug 04 08:30:09 2022 +0100 +++ b/plat/win32/update_gtags.cmd Sat Oct 08 22:00:54 2022 +0800 @@ -1,57 +1,50 @@ -@echo off -setlocal EnableExtensions EnableDelayedExpansion - -rem ========================================== -rem PARSE ARGUMENTS -rem ========================================== - -set GTAGS_EXE=gtags -set GTAGS_ARGS=%~4 -set INCREMENTAL= - -:ParseArgs -if [%1]==[] goto :DoneParseArgs -if [%1]==[-e] ( - set GTAGS_EXE=%~2 - shift - goto :LoopParseArgs -) -if [%1]==[--incremental] ( - set INCREMENTAL=--incremental - shift - goto :LoopParseArgs -) -echo Invalid Argument: %1 -goto :Usage - -:LoopParseArgs -shift -goto :ParseArgs - -:DoneParseArgs - - -rem ========================================== -rem GENERATE TAGS -rem ========================================== - -echo Running gtags: -echo call %GTAGS_EXE% %INCREMENTAL% %GTAGS_ARGS% -call %GTAGS_EXE% %INCREMENTAL% %GTAGS_ARGS% -echo Done. - -goto :EOF - - -rem ========================================== -rem USAGE -rem ========================================== - -:Usage -echo Usage: -echo %~n0 ^<options^> -echo. -echo -e [exe=gtags]: The gtags executable to run. -echo -L [cmd=]: The file list command to run -echo. - +@echo off + +setlocal EnableExtensions EnableDelayedExpansion + +rem ========================================== +rem PARSE ARGUMENTS +rem ========================================== +set GTAGS_EXE=gtags +set GTAGS_ARGS=%~4 +set INCREMENTAL= + +:ParseArgs +if [%1]==[] goto :DoneParseArgs +if [%1]==[-e] ( + set GTAGS_EXE=%~2 + shift + goto :LoopParseArgs +) +if [%1]==[--incremental] ( + set INCREMENTAL=--incremental + shift + goto :LoopParseArgs +) +echo Invalid Argument: %1 +goto :Usage +:LoopParseArgs +shift +goto :ParseArgs + +:DoneParseArgs +rem ========================================== +rem GENERATE TAGS +rem ========================================== +echo Running gtags: +echo call %GTAGS_EXE% %INCREMENTAL% %GTAGS_ARGS% +call %GTAGS_EXE% %INCREMENTAL% %GTAGS_ARGS% +echo Done. +goto :EOF +rem ========================================== +rem USAGE +rem ========================================== + +:Usage +echo Usage: +echo %~n0 ^<options^> +echo. +echo -e [exe=gtags]: The gtags executable to run. +echo -L [cmd=]: The file list command to run +echo. +