# HG changeset patch # User Liang Bo <5617279+microchip@user.noreply.gitee.com> # Date 1657673784 -28800 # Node ID b094a03a8115a9f512d4562518ffe774735ef8e9 # Parent 4e8e7047001fe86248ea017d54c1be27df6de8b8 Add the missing script win32/update_gtags.cmd Issue327, fix cannot generate the CTAGS files issue on windows platform by add the missing script for plat/win32/update_gtags.cmd diff -r 4e8e7047001f -r b094a03a8115 plat/win32/update_gtags.cmd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plat/win32/update_gtags.cmd Wed Jul 13 08:56:24 2022 +0800 @@ -0,0 +1,57 @@ +@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. +