awful, tabulous: change titles
[awesome.git] / build-utils / dist.sh
blob76ef82a8beb8dd759530f4a6ec6df0e5084747d4
1 #!/bin/sh
3 # $1 version to package
5 set -e
7 VERSION=$1
8 SVERSION=`echo $1 | sed 's/^v//'`
9 git-archive --prefix=dist/awesome-$SVERSION/ $VERSION | tar -xf -
10 cd dist
11 echo -n $VERSION > awesome-$SVERSION/.version_stamp
12 tar czf awesome-$SVERSION.tar.gz awesome-$SVERSION
13 tar cjf awesome-$SVERSION.tar.bz2 awesome-$SVERSION