Ticket #12: dist-tahoe.2.sh

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