Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a48697d078
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (26 sloc) 0.675 kb
# Return the root path
#
# @return [String] The absolute path to Janus repository
def root_path
@root_path ||= File.expand_path(File.dirname(__FILE__))
end
def expand(file)
File.expand_path(file)
end
# Load all plugin installation tasks
Dir["#{root_path}/janus-*/tasks/**.rake"].each { |f| load f }
task expand("~/.vimrc") => "vimrc" do
sh "ln -s ~/.vim/vimrc ~/.vimrc"
end
task expand("~/.gvimrc") => "gvimrc" do
sh "ln -s ~/.vim/gvimrc ~/.gvimrc"
end
task :update do
sh "git pull"
sh "git submodule init"
sh "git submodule update"
end
task :install => :update do
# Dummy task.
end
task :default => [:install, expand("~/.vimrc"), expand("~/.gvimrc")]
Jump to Line
Something went wrong with that request. Please try again.