From 23cbe0ea0988947b69f222f5c809bf7d2c361ceb Mon Sep 17 00:00:00 2001 From: Colin Jones Date: Sat, 24 Sep 2011 13:22:58 -0500 Subject: [PATCH] Avoid the need to remove old release zips --- .gitignore | 2 +- script/deploy.sh | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 50da4fa..1f08613 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ bin classes lib +releases *.jar .DS_Store -clojure-koans*.zip diff --git a/script/deploy.sh b/script/deploy.sh index 4a6ca7a..04c02b2 100755 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -1,8 +1,14 @@ #!/bin/sh git push -zip -r clojure-koans-`date +"%Y-%m-%d_%H-%M"`.zip . -x "./.git/*" +mkdir -p releases +zip -r releases/clojure-koans-`date +"%Y-%m-%d_%H-%M"`.zip \ + . \ + -x "./.git/*" \ + -x "releases/*" echo -echo "Don't forget to upload the zipfile!" -echo `ls -t clojure-koans-*.zip | head -n1` +echo "Don't forget to upload the zipfile" +echo " to https://github.com/functional-koans/clojure-koans/downloads" +echo `ls -t releases/clojure-koans-*.zip | head -n1` +echo