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

Do not symlink scripts in bin, cleanup Rakefile

This commit is contained in:
Holger Just 2025-01-21 00:47:08 +01:00
parent 5e67765fb0
commit 05cb36709a

View File

@ -1,11 +1,19 @@
require 'fileutils'
desc "installs everything"
task :update => "update:submodules"
namespace :update do
desc "Update all submodules"
task :submodules do
sh "git submodule update --init"
end
end
desc "Install everything"
task :install => "update"
task :install => "install:all"
namespace :install do
def files(name, *files)
desc "installs #{name} configuration"
desc "Install #{name} configuration"
task(name) do
Dir[*files].collect do |file|
full = File.join File.dirname(__FILE__), file.sub(/\.dotfile$/,'')
@ -21,13 +29,6 @@ namespace :install do
files :irb, ".irbrc", ".config/irb/*.rb"
files :dot, *%w[.bash_profile .bashrc .gemrc .gitignore_global .gitconfig .ackrc .rvmrc.dotfile]
files :bin, "bin/*"
files :vim, *%w[.vim .vimrc]
task :vim => [:dot, :bin, :submodules]
desc "Update all submodules"
task :submodules do
sh "git submodule update --init"
end
end