From 7c5ab691c88bb0e7e24f629407c12ca078a25842 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 1 Aug 2008 16:15:06 +0200 Subject: [PATCH] bui;d fix dist script Signed-off-by: Julien Danjou --- build-utils/dist.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build-utils/dist.sh b/build-utils/dist.sh index bd464bad5..76ef82a8b 100755 --- a/build-utils/dist.sh +++ b/build-utils/dist.sh @@ -4,9 +4,10 @@ set -e -VERSION=`echo $1 | sed 's/^v//'` -git-archive --prefix=dist/awesome-$VERSION/ $VERSION | tar -xf - +VERSION=$1 +SVERSION=`echo $1 | sed 's/^v//'` +git-archive --prefix=dist/awesome-$SVERSION/ $VERSION | tar -xf - cd dist -echo -n $VERSION > awesome-$VERSION/.version_stamp -tar czf awesome-$VERSION.tar.gz awesome-$VERSION -tar cjf awesome-$VERSION.tar.bz2 awesome-$VERSION +echo -n $VERSION > awesome-$SVERSION/.version_stamp +tar czf awesome-$SVERSION.tar.gz awesome-$SVERSION +tar cjf awesome-$SVERSION.tar.bz2 awesome-$SVERSION