blob: deed7b35f07325c2bcd5a21e90cd8e90674c7c39 [file] [log] [blame]
#!/bin/bash -xe
#
# Make a tarball from the current git repository
#
[ -z "$tmpdir" ] && tmpdir=/var/tmp
tmp=$tmpdir/klibc.$$
rm -rf $tmp
cg-export $tmp
cd $tmp
make release
version=`cat usr/klibc/version`
rm -rf $tmpdir/klibc-$version
mv $tmp $tmpdir/klibc-$version
cd ..
rm -f klibc-$version.tar*
tar cvvf klibc-$version.tar klibc-$version
gzip -9 klibc-$version.tar
rm -rf klibc-$version