# HG changeset patch # User skywind3000 # Date 1665237654 -28800 # Node ID 83b57b04ad56104942d830541e2394b1dc670571 # Parent efe305d995a0ed13ee6ad99fbfb2e8785020b060 fix missing update_gtags.cmd diff -r efe305d995a0 -r 83b57b04ad56 plat/win32/update_gtags.cmd --- 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 ^ -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 ^ +echo. +echo -e [exe=gtags]: The gtags executable to run. +echo -L [cmd=]: The file list command to run +echo. +