-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
42 lines (36 loc) · 1.06 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
namespace :plugin do
task :setup do
# vimproc
Dir.chdir "bundle/vimproc" do
sh "make -f make_mac.mak clean"
sh "make -f make_mac.mak"
end
# vimfiler
Dir.chdir "bundle/vimfiler" do
sh "git checkout ver.2.0"
end
# command_t
Dir.chdir "bundle/Command-T/ruby/command-t" do
if File.exists?("/usr/bin/ruby1.8") # prefer 1.8 on *.deb systems
sh "/usr/bin/ruby1.8 extconf.rb"
elsif File.exists?("/usr/bin/ruby") # prefer system rubies
sh "/usr/bin/ruby extconf.rb"
elsif `rvm > /dev/null 2>&1` && $?.exitstatus == 0
sh "rvm system ruby extconf.rb"
end
sh "make clean && make"
end
# the presence of this file will enable the rest of the vimrc
sh 'touch .plugins_installed'
# gem-ctags
sh "gem install gem-ctags"
end
end
task :init do
sh 'mkdir bundle'
sh 'git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle'
sh 'mkdir backup'
sh 'mkdir bin'
sh 'ln -sf $HOME/.vim/vimrc $HOME/.vimrc'
sh 'ln -sf $HOME/.vim/gvimrc $HOME/.gvimrc'
end