Skip to content

Instantly share code, notes, and snippets.

@dcrosby42
Created July 25, 2011 03:17
Show Gist options
  • Save dcrosby42/1103500 to your computer and use it in GitHub Desktop.
Save dcrosby42/1103500 to your computer and use it in GitHub Desktop.
Rakefile for generating Arduino ctags
desc "Generate Arduino code tags"
task :tags do
sh %{ctags -f tags.cpp `find . -name "*.cpp" -o -name "*.h"`}
sh %{ctags -f tags.pde --langmap=c++:.pde `find . -name "*.pde"`}
sh %{cat tags.cpp tags.pde > tags}
sh %{sort tags -o tags}
rm_f Dir["tags.*"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment