#need a git clone /path/to/repos/REPO
cd repo_dir
git pull
find projects/ -iregex '.*\.\(cs\|h\|cpp\|inl\|hpp\)$' | /path/to/phabricator/scripts/symbols/generate_ctags_symbols.php > /tmp/repo_dir_symbols.txt
#remove constructors
cat repo_dir_symbols.txt | grep -E -v '\b(\w+)\s+\1\b' > /tmp/repo_dir_symbols_filtered.txt
#documentation says to use rREPO but that didn't work
sudo -u phab /path/to/phabricator/scripts/symbols/import_repository_symbols.php REPO < /tmp/repo_dir_symbols_filtered.txt
cd -