From 92a006f51ccce7c313bebb74e90dd6c1c850d63f Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 4 May 2008 12:01:43 +1200 Subject: [PATCH] some handy utils --- Rakefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Rakefile diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..8befcfe --- /dev/null +++ b/Rakefile @@ -0,0 +1,18 @@ +desc "Copy the vim/doc files into ~/.vim" +task :deploy_local do + run "cp plugin/NERD_tree.vim ~/.vim/plugin" + run "cp doc/NERD_tree.txt ~/.vim/doc" +end + + +desc "Create a zip archive for release to vim.org" +task :zip do + abort "NERD_tree.zip already exists, aborting" if File.exist?("NERD_tree.zip") + run "zip NERD_tree.zip plugin/NERD_tree.vim doc/NERD_tree.txt" +end + +def run(cmd) + puts "Executing: #{cmd}" + system cmd +end +