Ticket #12: tahoe-dist.sh

File tahoe-dist.sh, 594 bytes (added by zooko, at 2007-06-11T16:43:22Z)

new version of the dist script cp's the version.py into place

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
8mv tahoe tahoe-${V}
9cp ../src/allmydata/version.py tahoe-${V}/src/allmydata/version.py
10tar cf tahoe-${V}.tar tahoe-${V}
11cp tahoe-${V}.tar x
12gzip -9 tahoe-${V}.tar
13cp x tahoe-${V}.tar
14bzip2 -9 tahoe-${V}.tar
15cp x tahoe-${V}.tar
16rzip -9 tahoe-${V}.tar
17cp x tahoe-${V}.tar
18lrzip -M tahoe-${V}.tar
19time scp tahoe-${V}.tar.* zooko@allmydata.org:/var/www/source/tahoe
20cd ..
21/bin/rm -rf $TEMPDIR