• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision9406 (tree)
Time2021-09-08 22:54:42
Authorzmatsuo

Log Message

gtagsインデックス更新を高速化

- gtags_update.sh を実行するとインデックスを再生成する
- find, grep を使ってファイル一覧(gtags.files)を作成

Change Summary

Incremental Difference

--- trunk/doc_internal/CMakeLists.txt (revision 9405)
+++ trunk/doc_internal/CMakeLists.txt (revision 9406)
@@ -24,9 +24,10 @@
2424 if(("${GTAGS}" STREQUAL "GTAGS-NOTFOUND") OR ("${HTAGS}" STREQUAL "HTAGS-NOTFOUND"))
2525 message(warning "global not found")
2626 else()
27+ message("${HTAGS} -ans --tabs 4 -F -d ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/global")
2728 add_custom_target(
2829 global
29- COMMAND ${GTAGS}
30+ COMMAND bash ./gtags_update.sh
3031 COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_SOURCE_DIR}/global
3132 COMMAND ${HTAGS} -ans --tabs 4 -F -d ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/global
3233 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..
--- trunk/doc_internal/build.sh (revision 9405)
+++ trunk/doc_internal/build.sh (revision 9406)
@@ -2,4 +2,4 @@
22 (cd doxygen; doxygen Doxyfile)
33
44 # global
5-(rm -rf global; mkdir global; cd ..; gtags; htags -ans --tabs 4 -F; mv HTML/* doc_internal/global)
5+(cd ..; ./gtags_update.sh; htags -ans --tabs 4 -F; mv HTML/* doc_internal/global)
--- trunk/gtags_update.sh (nonexistent)
+++ trunk/gtags_update.sh (revision 9406)
@@ -0,0 +1,3 @@
1+/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
2+gtags -f gtags.files
3+# see doc_internal/readme.md
Show on old repository browser