2008-06-23 23:07:28 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $1 version to package
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2008-08-01 16:15:06 +02:00
|
|
|
VERSION=$1
|
|
|
|
SVERSION=`echo $1 | sed 's/^v//'`
|
2008-11-21 11:04:10 +01:00
|
|
|
git archive --prefix=dist/awesome-$SVERSION/ $VERSION | tar -xf -
|
2008-06-23 23:07:28 +02:00
|
|
|
cd dist
|
2008-08-01 16:15:06 +02:00
|
|
|
echo -n $VERSION > awesome-$SVERSION/.version_stamp
|
|
|
|
tar czf awesome-$SVERSION.tar.gz awesome-$SVERSION
|
|
|
|
tar cjf awesome-$SVERSION.tar.bz2 awesome-$SVERSION
|