From 6089d08ed3f15b8d1866c0b3cc9213a7730e396f Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Mon, 31 Mar 2008 17:56:29 +1300 Subject: [PATCH] handy rakefile to create release zip files and deploy locally --- Rakefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Rakefile diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..b3cf2ca --- /dev/null +++ b/Rakefile @@ -0,0 +1,18 @@ +desc "Copy the vim/doc files into ~/.vim" +task :deploy_local do + run "cp plugin/NERD_commenter.vim ~/.vim/plugin" + run "cp doc/NERD_commenter.txt ~/.vim/doc" +end + + +desc "Create a zip archive for release to vim.org" +task :zip do + abort "NERD_commenter.zip already exists, aborting" if File.exist?("NERD_commenter.zip") + run "zip NERD_commenter.zip plugin/NERD_commenter.vim doc/NERD_commenter.txt" +end + +def run(cmd) + puts "Executing: #{cmd}" + system cmd +end +