From e7efd5fbf7471bf88f761d11103b06abaa26f513 Mon Sep 17 00:00:00 2001 From: Alec Leamas Date: Sat, 16 Oct 2010 11:34:49 +0200 Subject: [PATCH] Compress source.tar Compress source.tar, reducing overall distributed source size with about 30%. Also, actually push this branch ;) --- script/server | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/script/server b/script/server index 2649ed677..b40d73a52 100755 --- a/script/server +++ b/script/server @@ -29,13 +29,12 @@ then else mkdir -p -v log/thin/ #force AGPL - test -w public -a ! -e public/source.tar && - tar cf public/source.tar --exclude='source.tar' -X .gitignore * - test -e public/source.tar || { - echo "Can't find, or even create, public/source.tar. Giving up" + test -w public -a ! -e public/source.tar.gz && + tar czf public/source.tar.gz --exclude='source.tar.gz' -X .gitignore * + test -e public/source.tar.gz || { + echo "Can't find, or even create, public/source.tar.gz. Giving up" exit 2 } bundle exec ruby ./script/websocket_server.rb& bundle exec thin start $@ fi -