public
Description: Vim plugin for the Perl module / CLI script 'ack'
Homepage:
Clone URL: git://github.com/mileszs/ack.vim.git
ack.vim / Rakefile
100644 24 lines (19 sloc) 0.608 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Added by Josh Nichols, a.k.a. technicalpickles
require 'rake'
 
files = ['doc/ack.txt', 'plugin/ack.vim']
 
desc 'Install plugin and documentation'
task :install do
  vimfiles = if ENV['VIMFILES']
               ENV['VIMFILES']
             elsif RUBY_PLATFORM =~ /(win|w)32$/
               File.expand_path("~/vimfiles")
             else
               File.expand_path("~/.vim")
             end
  files.each do |file|
    target_file = File.join(vimfiles, file)
    FileUtils.mkdir_p File.dirname(target_file)
    FileUtils.cp file, target_file
 
    puts " Copied #{file} to #{target_file}"
  end
 
end