From 11ce5113c5a7f404ea917b3bcc7b29e396dab74d Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Tue, 25 Jan 2011 10:59:54 -0500 Subject: [PATCH] Rakefile : add `zip` for zipping up _site --- .gitignore | 3 ++- Rakefile | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c08f9ad..dff1a3c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -_site \ No newline at end of file +_site +isotope-site.zip \ No newline at end of file diff --git a/Rakefile b/Rakefile index ff5c04a..461a4d7 100644 --- a/Rakefile +++ b/Rakefile @@ -20,4 +20,16 @@ task :min do f.write min end end +end + +desc "Zips _site/ into isotope-site.zip" +task :zip do + # makes isotope-site/ directory + sh 'mkdir isotope-site;' + # copies _site/ + sh 'cp -r _site/ isotope-site;' + # zips isotope-site/ + sh 'zip -r isotope-site isotope-site/;' + # removes isotope-site/ + sh 'rm -rf isotope-site;' end \ No newline at end of file