From 15bacd87ef0ae049ca03641c925f5ee1467c1af8 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Wed, 14 May 2014 17:18:29 +0200 Subject: [PATCH] Cleanup Rakefile --- Rakefile | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/Rakefile b/Rakefile index 96d2b14..d01907f 100644 --- a/Rakefile +++ b/Rakefile @@ -8,7 +8,7 @@ namespace :install do desc "installs #{name} configuration" task(name) do Dir[*files].collect do |file| - full = File.join File.dirname(__FILE__), File.basename(file, '.dotfile') + full = File.join File.dirname(__FILE__), file.sub(/\.dotfile$/,'') Dir.chdir ENV["HOME"] do mkdir_p File.dirname(file) File.delete(file) if (File.exist? file and File.directory? full) @@ -20,33 +20,9 @@ namespace :install do end files :irb, ".irbrc", ".config/irb/*.rb" - files :dot, *%w(.bash_profile .bashrc .gemrc .gitignore_global .gitconfig .ackrc .rvmrc.dotfile) + files :dot, *%w[.bash_profile .bashrc .gemrc .gitignore_global .gitconfig .ackrc .rvmrc.dotfile] files :bin, "bin/*" - 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 - files :texmf_folder, "texmf" - Rake::Task[:texmf_folder].invoke - end - - desc "Setup SublimeText2" - task :sublime do - end - - desc "Sublime Configuration" - task :sublime_config do - sublime_path = "#{ENV['HOME']}/Library/Application Support/Sublime Text 2" - df_dir = File.expand_path("../sublime", __FILE__) - - FileUtils.ln_sf(df_dir, "#{sublime_path}/Packages/User") if File.exist?(sublime_path) - end - task :sublime => :sublime_config - - task :all => [:texmf, :sublime] + files :vim, *%w[.vim .vimrc] end