Skip to content

Commit

Permalink
Fix Rakefile (broken since command-t was removed)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elijah Andrews committed Apr 7, 2014
1 parent 6545779 commit d97dcb7
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions Rakefile
@@ -1,4 +1,4 @@
task :default => [:tmp_dirs, :update, :command_t, :link]
task :default => [:tmp_dirs, :update, :link]

desc %(Bring bundles up to date)
task :update do
Expand Down Expand Up @@ -32,23 +32,6 @@ task :tmp_dirs do
mkdir_p "_temp"
end

desc %(Compile Command-T plugin)
task :command_t => :macvim_check do
vim = which('mvim') || which('vim') or abort "vim not found on your system"
ruby = read_ruby_version(vim)

Dir.chdir "bundle/command-t/ruby/command-t" do
if ruby
puts "Compiling Command-T plugin..."
sh(*Array(ruby).concat(%w[extconf.rb]))
sh "make clean && make"
else
warn color('Warning:', 31) + " Can't compile Command-T, no ruby support in #{vim}"
sh "make clean"
end
end
end

task :macvim_check do
if mvim = which('mvim') and '/usr/bin/vim' == which('vim')
warn color('Warning:', 31) + " You have MacVim installed, but `vim` still opens system Vim."
Expand Down

0 comments on commit d97dcb7

Please sign in to comment.