| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | V=`PYTHONPATH=./src python -c'import allmydata ;print allmydata.__version__'` |
|---|
| 4 | darcs dist |
|---|
| 5 | TEMPDIR=`python -c'import tempfile;print tempfile.mkdtemp(dir=".")'` |
|---|
| 6 | cd $TEMPDIR |
|---|
| 7 | tar xzf ../tahoe.tar.gz |
|---|
| 8 | mv tahoe tahoe-${V} |
|---|
| 9 | cp ../src/allmydata/version.py tahoe-${V}/src/allmydata/version.py |
|---|
| 10 | tar cf tahoe-${V}.tar tahoe-${V} |
|---|
| 11 | cp tahoe-${V}.tar x |
|---|
| 12 | gzip -9 tahoe-${V}.tar |
|---|
| 13 | cp x tahoe-${V}.tar |
|---|
| 14 | bzip2 -9 tahoe-${V}.tar |
|---|
| 15 | cp x tahoe-${V}.tar |
|---|
| 16 | rzip -9 tahoe-${V}.tar |
|---|
| 17 | cp x tahoe-${V}.tar |
|---|
| 18 | lrzip -M tahoe-${V}.tar |
|---|
| 19 | time scp tahoe-${V}.tar.* zooko@allmydata.org:/var/www/source/tahoe |
|---|
| 20 | cd .. |
|---|
| 21 | /bin/rm -rf $TEMPDIR |
|---|