summaryrefslogtreecommitdiff
path: root/source4/script/mkrelease.sh
blob: 4c0d9e01ebb10a6d62aed8c50dc19a33b5a08f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

if [ ! -d ".git" -o `dirname $0` != "./source4/script" ]; then
	echo "Run this script from the top-level directory in the"
	echo "repository as: ./source4/script/mkrelease.sh"
	exit 1
fi

cd source4
../buildtools/bin/waf dist

TGZFILE="`echo *.tar.gz`"
gunzip $TGZFILE
TARFILE="`echo *.tar`"
tar xf $TARFILE
DIRN="`echo -n $TARFILE | sed -e 's/\.tar//'`"
cd $DIRN/source4 && ./autogen.sh && cd ../..
tar cf $TARFILE $DIRN
rm -r "$DIRN"

echo "Now run: "
echo "gpg --detach-sign --armor $TARFILE"
echo "gzip $TARFILE"
echo "And then upload "
echo "$TARFILE.gz $TARFILE.asc" 
echo "to pub/samba/samba4/ on samba.org"