Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (20 sloc) 507 Bytes
# Build the TAGS file for Emacs
# Taken with slight modifications from
# http://blog.lathi.net/articles/2007/11/07/navigating-your-projects-in-emacs
#
# Thanks Jim Weirich
module Emacs
module Tags
def self.ruby_files
@ruby_files ||= FileList['**/*.rb'].exclude("pkg")
end
end
end
namespace :tags do
task :emacs do
puts "Making Emacs TAGS file"
sh "ctags -e #{Emacs::Tags.ruby_files}", :verbose => false
end
end
desc "Build the emacs tags file"
task :tags => ["tags:emacs"]