Skip to content

Instantly share code, notes, and snippets.

@syg
Created August 28, 2013 18:37
Show Gist options
  • Save syg/6369620 to your computer and use it in GitHub Desktop.
Save syg/6369620 to your computer and use it in GitHub Desktop.
#!/bin/sh
pattern='src\/(Debug|Opt|yarr|build|jsapi-tests|gdb|ctypes).*\/'
listfile=/tmp/files
find public -type f -print > $listfile
find src -name "*.h" -print | grep -v -P $pattern >> $listfile
find src -name "*.cpp" -print | grep -v -P $pattern >> $listfile
ctags -e --fields=+iaS --language-force=C++ $(cat $listfile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment