Permalink
Browse files

Rakefile : add `zip` for zipping up _site

  • Loading branch information...
1 parent 605d7e2 commit 11ce5113c5a7f404ea917b3bcc7b29e396dab74d @desandro desandro committed Jan 25, 2011
Showing with 14 additions and 1 deletion.
  1. +2 −1 .gitignore
  2. +12 −0 Rakefile
View
@@ -1 +1,2 @@
-_site
+_site
+isotope-site.zip
View
@@ -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

0 comments on commit 11ce511

Please sign in to comment.