File: tags.rake

package info (click to toggle)
ruby-flexmock 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 836 kB
  • sloc: ruby: 7,572; makefile: 6
file content (18 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env ruby
# -*- ruby -*-

module Tags
  RUBY_FILES = FileList['**/*.rb'].exclude("pkg")
  PROG = ENV['TAGS'] || 'ctags'
end

namespace "tags" do
  desc "Update the Tags file for emacs"
  task :emacs => Tags::RUBY_FILES do
    puts "Making Emacs TAGS file"
    sh "#{Tags::PROG} -e #{Tags::RUBY_FILES}", :verbose => false
  end
end

desc "Update the Tags file for emacs"
task :tags => ["tags:emacs"]