Revision: 9406 https://osdn.net/projects/ttssh2/scm/svn/commits/9406 Author: zmatsuo Date: 2021-09-08 22:54:42 +0900 (Wed, 08 Sep 2021) Log Message: ----------- gtagsインデックス更新を高速化 - gtags_update.sh を実行するとインデックスを再生成する - find, grep を使ってファイル一覧(gtags.files)を作成 Modified Paths: -------------- trunk/doc_internal/CMakeLists.txt trunk/doc_internal/build.sh Added Paths: ----------- trunk/gtags.conf trunk/gtags_update.sh -------------- next part -------------- Modified: trunk/doc_internal/CMakeLists.txt =================================================================== --- trunk/doc_internal/CMakeLists.txt 2021-09-08 13:35:30 UTC (rev 9405) +++ trunk/doc_internal/CMakeLists.txt 2021-09-08 13:54:42 UTC (rev 9406) @@ -24,9 +24,10 @@ if(("${GTAGS}" STREQUAL "GTAGS-NOTFOUND") OR ("${HTAGS}" STREQUAL "HTAGS-NOTFOUND")) message(warning "global not found") else() + message("${HTAGS} -ans --tabs 4 -F -d ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/global") add_custom_target( global - COMMAND ${GTAGS} + COMMAND bash ./gtags_update.sh COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_SOURCE_DIR}/global COMMAND ${HTAGS} -ans --tabs 4 -F -d ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/global WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/.. Modified: trunk/doc_internal/build.sh =================================================================== --- trunk/doc_internal/build.sh 2021-09-08 13:35:30 UTC (rev 9405) +++ trunk/doc_internal/build.sh 2021-09-08 13:54:42 UTC (rev 9406) @@ -2,4 +2,4 @@ (cd doxygen; doxygen Doxyfile) # global -(rm -rf global; mkdir global; cd ..; gtags; htags -ans --tabs 4 -F; mv HTML/* doc_internal/global) +(cd ..; ./gtags_update.sh; htags -ans --tabs 4 -F; mv HTML/* doc_internal/global) Added: trunk/gtags.conf =================================================================== --- trunk/gtags.conf (rev 0) +++ trunk/gtags.conf 2021-09-08 13:54:42 UTC (rev 9406) @@ -0,0 +1,2 @@ +default:\ + :langmap=c\:.c.h,cpp\:.cpp,asm\:.s.S Added: trunk/gtags_update.sh =================================================================== --- trunk/gtags_update.sh (rev 0) +++ trunk/gtags_update.sh 2021-09-08 13:54:42 UTC (rev 9406) @@ -0,0 +1,3 @@ +/usr/bin/find teraterm TTProxy TTX* ttssh2 -type f -name "*.c" -o -name "*.cpp" -o -name "*.h" | grep -v Release | grep -v .vs | grep -v Debug | grep -v build > gtags.files +gtags -f gtags.files +# see doc_internal/readme.md