aboutsummaryrefslogtreecommitdiffstats
path: root/maketar.sh
blob: 4a9410fbfe3737b6f5f5c3f59ddd41638807398c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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 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