diff options
author | Alec Leamas <leamas.alec@gmail.com> | 2010-12-06 17:20:22 +0300 |
---|---|---|
committer | Alec Leamas <leamas.alec@gmail.com> | 2010-12-06 17:22:43 +0300 |
commit | 521aa83b0cec4ab618afa718e714b7891c95a5df (patch) | |
tree | bb62b5c465ae475decca50fcbd7fe7e5fd3ee39c /script | |
parent | 36e6c9f68ea865de2e57430d912a78a456fd57e8 (diff) |
Create publiuc/source.tar.gz from current branch.
Also, give slow starters some more time.
Diffstat (limited to 'script')
-rwxr-xr-x | script/server | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/script/server b/script/server index 6a65756c0..4daa02c5f 100755 --- a/script/server +++ b/script/server @@ -15,7 +15,7 @@ function init_public bundle exec thin \ -d --pid log/thin.pid --address localhost --port $THIN_PORT \ start - for ((i = 0; i < 20; i += 1)) do + for ((i = 0; i < 30; i += 1)) do sleep 2 wget -q -O tmp/server.html http://localhost:$THIN_PORT && \ rm tmp/server.html && break @@ -76,7 +76,8 @@ fi # Force AGPL if [ -w public -a ! -e public/source.tar.gz ]; then - tar czf public/source.tar.gz `git ls-tree -r master | awk '{print $4}'` + branch=$( git branch | awk '/^*/ {print $2}') + tar czf public/source.tar.gz `git ls-tree -r $branch | awk '{print $4}'` fi if [ ! -e public/source.tar.gz ]; then echo "Error: Can't find, or even create, public/source.tar.gz. Exiting" >&2 |