Page MenuHomePhabricator
Paste P1785

Symbols update script, with filtering out constructors to eliminate multiple symbol conflicts
ActivePublic

Authored by matelich on May 19 2015, 12:31 PM.
#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 -

Event Timeline

matelich changed the title of this paste from untitled to Symbols update script, with filtering out constructors to eliminate multiple symbol conflicts.
matelich updated the paste's language from autodetect to bash.
matelich added a project: Symbols.