2011-12-08 15:27:41 +08:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
require File.join(File.dirname(__FILE__), 'default_libs')
|
|
|
|
|
|
|
|
GitStyleBinary.command do
|
|
|
|
version "yadr-init-plugins 1.0"
|
|
|
|
|
|
|
|
short_desc "Initialize all submodules. Run this every time you pull a new yadr version."
|
|
|
|
|
|
|
|
run do |command|
|
|
|
|
system("cd ~/.dotfiles && git submodule init && git submodule update")
|
2011-12-09 02:05:53 +08:00
|
|
|
|
|
|
|
# Compile Command-T
|
2012-01-12 06:34:24 +08:00
|
|
|
if File.directory?(File.expand_path("~/.dotfiles/vim/bundle/skwp-Command-T"))
|
2011-12-09 02:05:53 +08:00
|
|
|
puts "Compiling Command-T plugin..."
|
2012-01-12 06:34:24 +08:00
|
|
|
system("cd ~/.dotfiles/vim/bundle/skwp-Command-T && rake make")
|
2011-12-09 02:05:53 +08:00
|
|
|
end
|
2011-12-08 15:27:41 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|