-
Notifications
You must be signed in to change notification settings - Fork 32
/
Rakefile
45 lines (36 loc) · 944 Bytes
/
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
43
44
45
task :install do
root = File.expand_path(File.dirname(__FILE__))
puts 'Installing Bundles'
system "vim -c BundleInstall! -c q -c q -u bundles.vim"
puts 'Compile command-t extensions'
cmds = [
"cd #{File.join(root, 'bundle', 'command-t', 'ruby', 'command-t')}",
"ruby extconf.rb",
"make"
]
system cmds.join(' && ')
puts 'Install additional snippets'
cmds = [
"cd #{File.join(root, 'bundle', 'snipmate-snippets')}",
"rake deploy_local"
]
system cmds.join(' && ')
puts '*' * 79
puts
puts 'All done!'
puts 'Be sure to checkout the helpful links in the README'
puts 'Issues/Wiki: https://github.com/krisleech/vimfiles'
puts
puts '*' * 79
end
desc 'Update to latest and greatest'
task :update do
system('git pull origin master')
puts 'Updating Bundles'
system "vim -c BundleInstall! -c BundleClean! -c q -c q"
puts '*' * 79
puts
puts 'Finished'
puts
puts '*' * 79
end