MacOS GNU Global
Orion Electric Age

MacOS’s Source Insight

Why GNU Global source code tagging system? GNU Global Comparison with Similar Tools

HowTo

  • Install Homebrew, The Missing Package Manager for macOS (or Linux)
    1
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Install Global, Homebrew Global
    1
    brew install global
  • Source Tour with Global
    1
    2
    3
    4
    5
    6
    7
    $ cd source/directory
    $ gtags -v
    $ htags -sanohITvt 'Welcome to XXX source tour!'
    $ htags --suggest2
    $ htags-server -b 127.0.0.1 8000
    # for update
    $ gtags -vu

Start Multi htags servers

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

PORT=9000
PDIR=`pwd`
cd $PDIR

for FILE in *; do
if [ -d $FILE ]; then
cd $FILE

htags-server -b 127.0.0.1 $PORT >& /dev/null &
echo "$FILE htags server's port $PORT"
PORT=$(($PORT+1))

cd ..
fi
done

while [ True ]; do
echo "htags server is running, wait exit..."
sleep 60
done

References