Skip to content

Commit

Permalink
Rakefile : add zip for zipping up _site
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Jan 25, 2011
1 parent 605d7e2 commit 11ce511
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1 +1,2 @@
_site
_site
isotope-site.zip
12 changes: 12 additions & 0 deletions Rakefile
Expand Up @@ -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.