Ticket #12: dist-tahoe.sh

File dist-tahoe.sh, 528 bytes (added by zooko, at 2007-05-06T20:41:26Z)

script that I run to upload src tarballs

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