Ticket #12: dist-tahoe.sh
File dist-tahoe.sh, 528 bytes (added by zooko, at 2007-05-06T20:41:26Z) |
---|
Line | |
---|---|
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 | tar cf tahoe-${V}.tar tahoe-${V} |
10 | cp tahoe-${V}.tar x |
11 | gzip -9 tahoe-${V}.tar |
12 | cp x tahoe-${V}.tar |
13 | bzip2 -9 tahoe-${V}.tar |
14 | cp x tahoe-${V}.tar |
15 | rzip -9 tahoe-${V}.tar |
16 | cp x tahoe-${V}.tar |
17 | lrzip -M tahoe-${V}.tar |
18 | time scp tahoe-${V}.tar.* zooko@allmydata.org:/var/www/source/tahoe |
19 | cd .. |
20 | /bin/rm -rf $TEMPDIR |
21 |