1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2026-02-06 00:53:23 +00:00

Fix install rake

This commit is contained in:
Holger Just 2011-02-02 14:29:33 +01:00
parent 77aeac9e23
commit 3230d47b4f

View File

@ -9,7 +9,7 @@ namespace :install do
full = File.join Dir.pwd, file
Dir.chdir ENV["HOME"] do
mkdir_p File.dirname(file)
sh "rm #{file}" if (File.exist? file and File.directory? full)
File.delete(file) if (File.exist? file and File.directory? full)
sh "ln -sf #{full} #{file}"
end
end
@ -18,7 +18,7 @@ namespace :install do
end
install :irb, ".irbrc", ".config/irb/*.rb"
install :dot, ".bash_profile", ".bashrc", ".gemrc", ".vimrc", ".vim", ".gitignore", ".gitconfig"
install :dot, ".bash_profile", ".bashrc", ".gemrc", ".vimrc", ".vim", ".gitignore", ".global_gitconfig"
install :bin, "bin/*"
desc "installs the custom texmf folder"