-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathregenDragonOnlineTags.sh
More file actions
executable file
·43 lines (30 loc) · 1.2 KB
/
regenDragonOnlineTags.sh
File metadata and controls
executable file
·43 lines (30 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/bash
# on OSX I do:
# 1. "brew install global" -- this installs gtags
# 2. "brew unlink ctags" (maybe needed, not sure)
# 3. "brew install --HEAD universal-ctags/universal-ctags/universal-ctags" # this installs universal ctags
echo -n "Regenerating ctags for DRAGON Online..."
cd $DRAGON_HOME/src/main/java/
ctags -f .dragonOnlineJavaTags -R .
# output in JSON?
# see https://docs.ctags.io/en/latest/man/ctags-json-output.5.html
echo -n "Regenerating JSON format too..."
rm .tibsJsonTags
ctags -R --output-format=json --fields="+n" -f .tibsJsonTags
# 20260116 note - I don't appear to be actually using this json version anywhere...I suspect I was experimenting it
# and never got very far? Leaving it in here but turn off if you like. (e.g. my current neovim is still just using
# .dragonOnlineJavaTags for code nav.
echo "done!"
# 202208 - not sure what this part does anymore?!?!?
if [ 1 -eq 2 ]; then
echo -n "Regenerating cscope db..."
cd $DRAGON_HOME/src/main/java/
# needed for cygwin only
# find "$PWD"/ -name "*.java" > tempFileNotFixed
# sed 's-/cygdrive/c/-c:/-' tempFileNotFixed > tempFile
# osx version
find "$PWD"/ -name "*.java" > tempFile
gtags -f tempFile
rm tempFile*
fi
echo "done!"