Skip to content

Instantly share code, notes, and snippets.

@incite
Created July 9, 2009 11:18
Show Gist options
  • Save incite/143581 to your computer and use it in GitHub Desktop.
Save incite/143581 to your computer and use it in GitHub Desktop.
module Tags
# http://blog.feelingroot.com/?p=105
RUBY_FILES = FileList['**/*.rb'].exclude(”pkg”)
end
namespace “tags” do
task :emacs => Tags::RUBY_FILES do
puts “Making Emacs TAGS file”
sh “/opt/local/bin/ctags -e #{Tags::RUBY_FILES}”, :verbose => false
end
end
task :tags => ["tags:emacs"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment