2011-12-09 18:24:51 +05:30
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
orig_dir=$(pwd)
|
|
|
|
|
|
|
|
# usage: mk_release <git tag>
|
|
|
|
tag=$1
|
|
|
|
echo "creating release tarball for tag '"$tag"'"
|
|
|
|
|
|
|
|
tmp=$(mktemp -d)
|
|
|
|
dir=$tmp/thin-provisioning-tools-$tag
|
|
|
|
|
|
|
|
mkdir $dir
|
|
|
|
|
|
|
|
git clone . $dir
|
|
|
|
cd $dir
|
|
|
|
git checkout $tag
|
2011-12-16 18:54:44 +05:30
|
|
|
autoreconf
|
2011-12-09 18:24:51 +05:30
|
|
|
rm -rf .git
|
|
|
|
cd $tmp
|
|
|
|
tar jcvf $orig_dir/thin-provisioning-tools-$tag.tar.bz2 thin-provisioning-tools-$tag
|
|
|
|
cd $orig_dir
|
|
|
|
|
|
|
|
rm -rf $tmp
|