Skip to content

Commit

Permalink
Sanitize everything finally
Browse files Browse the repository at this point in the history
  • Loading branch information
danlucraft committed Aug 7, 2010
1 parent b9d499a commit 223418b
Show file tree
Hide file tree
Showing 29 changed files with 9 additions and 344 deletions.
Binary file not shown.
Binary file not shown.
Binary file removed Bundles/CTags.tmbundle/Support/bin/ctags
Binary file not shown.
Binary file removed Bundles/CTags.tmbundle/Support/bin/next_
Binary file not shown.
5 changes: 0 additions & 5 deletions Bundles/Clojure.tmbundle/Support/bin/next_

This file was deleted.

File renamed without changes.
File renamed without changes.
47 changes: 0 additions & 47 deletions Bundles/Clojure.tmbundle/Vendor/next_

This file was deleted.

16 changes: 0 additions & 16 deletions Bundles/Lisp.tmbundle/Snippets/'(.tmSnippet

This file was deleted.

16 changes: 0 additions & 16 deletions Bundles/Lisp.tmbundle/Snippets/`(.tmSnippet

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions Bundles/Ruby RSpec.tmbundle/Snippets/should ==.tmSnippet

This file was deleted.

17 changes: 0 additions & 17 deletions Bundles/Ruby RSpec.tmbundle/Snippets/should =~.tmSnippet

This file was deleted.

17 changes: 0 additions & 17 deletions Bundles/Ruby RSpec.tmbundle/Snippets/should_not ==.tmSnippet

This file was deleted.

17 changes: 0 additions & 17 deletions Bundles/Ruby RSpec.tmbundle/Snippets/should_not =~.tmSnippet

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 9 additions & 3 deletions Rakefile
Expand Up @@ -4,11 +4,17 @@ task :clean_textmate do
# rename files to be x-platform safe
Dir["Bundles/*.tmbundle/*/**/*"].each do |fn|
if File.file?(fn)
bits = fn.split("/").last.split(".")[0..-2].join("_")
new_basename = bits.gsub(" ", "_").gsub(/[^\w_]/, "__").gsub(/\\./, "__") + File.extname(fn)
new_fn = File.join(File.dirname(fn), new_basename)
if File.extname(fn) == ""
new_basename = File.basename(fn).gsub(" ", "_").gsub(/[^\w_]/, "__").gsub(/\\./, "__")
new_fn = File.join(File.dirname(fn), new_basename)
else
bits = fn.split("/").last.split(".")[0..-2].join("_")
new_basename = bits.gsub(" ", "_").gsub(/[^\w_]/, "__").gsub(/\\./, "__") + File.extname(fn)
new_fn = File.join(File.dirname(fn), new_basename)
end
next if new_fn == fn
if File.exist?(new_fn)
p [fn, new_fn]
if File.read(new_fn) == File.read(fn)
FileUtils.rm_rf(fn)
else
Expand Down

0 comments on commit 223418b

Please sign in to comment.