Browse Source

Refactor rakefile for better use of paths

master
jimi 14 years ago
parent
commit
fdb0fbf530
  1. 7
      Rakefile

7
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