Skip to content

Instantly share code, notes, and snippets.

@csaunders
Created August 8, 2013 15:06
Show Gist options
  • Save csaunders/6185417 to your computer and use it in GitHub Desktop.
Save csaunders/6185417 to your computer and use it in GitHub Desktop.
A script that I have run via cron to re-index various codebases.
#!/usr/bin/ruby
places_to_process = ["~/development/ruby/"].map{|dir| File.expand_path(dir)}
places_to_process.each do |directory|
Dir.chdir(directory)
entries = Dir.entries(".").reject{|i| i.chars.first == "."}
entries.each do |entry|
Dir.chdir(directory + "/" + entry)
system("ctags -R -f .tags")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment