1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2026-02-05 16:43:22 +00:00

Add Janus configuration for VIM

This commit is contained in:
Holger Just 2011-05-11 16:25:31 +02:00
parent a86c24c6c1
commit 4457f1820b
3 changed files with 25 additions and 6 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule ".vim"]
path = .vim
url = git://github.com/carlhuda/janus.git

1
.vim Submodule

@ -0,0 +1 @@
Subproject commit 137f4de2325800159e4543257c80cf145cfa1934

View File

@ -6,9 +6,9 @@ namespace :install do
desc "installs #{name} configuration"
task(name) do
Dir[*files].collect do |file|
full = File.join Dir.pwd, file
full = File.join File.dirname(__FILE__), file
Dir.chdir ENV["HOME"] do
mkdir_p File.dirname(file)
mkdir_p File.dirname(file)
File.delete(file) if (File.exist? file and File.directory? full)
sh "ln -sf #{full} #{file}"
end
@ -18,16 +18,31 @@ namespace :install do
end
install :irb, ".irbrc", ".config/irb/*.rb"
install :dot, *%w(.bash_profile .bashrc .gemrc .global_gitignore .gitconfig .ackrc)
install :dot, *%w(.bash_profile .bashrc .gemrc .global_gitignore .gitconfig .ackrc .vimrc.local)
install :bin, "bin/*"
desc "installs the custom texmf folder"
task :texmf do
desc "Update all submodules"
task :submodules do
system "git submodule init && git submodule update"
end
desc "installs the custom texmf folder"
task :texmf => :submodules do
install :texmf_folder, "texmf"
Rake::Task[:texmf_folder].invoke
end
task :all => :texmf
desc "Update the janus bundle"
task :vim => :submodules do
dir = ".vim"
tasks = Rake::Task.tasks
Dir.chdir File.join(File.dirname(__FILE__), dir) do
system "rake"
end
install :vim, dir
end
task :all => [:texmf, :vim]
end