awesome/build-utils/dist.sh
Julien Danjou 4a28c6b219 build: dist now build .xz instead of .gz
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-26 20:03:17 +01:00

13 lines
319 B
Bash
Executable file

#!/bin/sh
#
# $1 version to package
set -e
VERSION=$1
SVERSION=`echo $1 | sed 's/^v//'`
git archive --prefix=dist/awesome-$SVERSION/ $VERSION | tar -xf -
cd dist
echo -n $VERSION > awesome-$SVERSION/.version_stamp
tar cjf awesome-$SVERSION.tar.bz2 awesome-$SVERSION
tar cJf awesome-$SVERSION.tar.xz awesome-$SVERSION