From fdb0fbf53033c448d22f899a7519aabe88503990 Mon Sep 17 00:00:00 2001 From: jimi Date: Wed, 13 Oct 2010 23:56:42 -0500 Subject: [PATCH] Refactor rakefile for better use of paths --- Rakefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 85a00f5..ed5df06 100644 --- a/Rakefile +++ b/Rakefile @@ -1,17 +1,18 @@ HOME = ENV['HOME'] -DEST = "#{HOME}/.vim/personal" +PATH = ".vim/bundle/xptemplate/personal" +DEST = "#{HOME}/#{PATH}" SRC = "ftplugin" directory DEST task :default => :install -desc "Hardlink snippets into the ~/.vim/personal directory" +desc "Hardlink snippets into the ~/#{PATH} directory" task :install => DEST do run "cp -avl #{SRC} #{DEST}/" end -desc "Remove obsolete from and copy new snippets to ~/.vim/personal" +desc "Remove obsolete from and copy new snippets to ~/#{PATH}" task :sync => :install do run "rsync -ri --delete #{SRC} #{DEST}/" end