Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cf96aac62f
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (40 sloc) 0.947 kb
ROOT_PATH = File.expand_path(File.join(File.dirname(__FILE__), 'janus'))
$: << File.join(ROOT_PATH, 'lib')
require 'janus'
include Janus
desc "link ViM configuration files."
task :link_vim_conf_files do
%w[ vimrc gvimrc ].each do |file|
dest = expand("~/.#{file}")
unless File.exist?(dest)
ln_s(expand("../janus/#{file}", __FILE__), dest)
end
end
end
namespace :dev do
desc "Update submodules"
task :update_submodules do
submodules.each do |submodule|
update_submodule(submodule)
end
end
end
desc "Create necessary folders."
task :folders do
Janus::VIM.folders.each do |folder|
mkdir_p folder
end
end
task :update do
sh "git pull"
sh "git submodule init"
sh "git submodule update"
end
task :install => [:folders, :link_vim_conf_files] do
# Dummy task, real work is done with the hooks.
end
desc "Install or Update Janus."
task :default do
sh "rake update"
sh "rake install"
end
Jump to Line
Something went wrong with that request. Please try again.