s3-build: fix classic build after libcli netlogon changes.
[Samba.git] / source4 / script / mkrelease.sh
blob4c0d9e01ebb10a6d62aed8c50dc19a33b5a08f88
1 #!/bin/sh
3 if [ ! -d ".git" -o `dirname $0` != "./source4/script" ]; then
4 echo "Run this script from the top-level directory in the"
5 echo "repository as: ./source4/script/mkrelease.sh"
6 exit 1
7 fi
9 cd source4
10 ../buildtools/bin/waf dist
12 TGZFILE="`echo *.tar.gz`"
13 gunzip $TGZFILE
14 TARFILE="`echo *.tar`"
15 tar xf $TARFILE
16 DIRN="`echo -n $TARFILE | sed -e 's/\.tar//'`"
17 cd $DIRN/source4 && ./autogen.sh && cd ../..
18 tar cf $TARFILE $DIRN
19 rm -r "$DIRN"
21 echo "Now run: "
22 echo "gpg --detach-sign --armor $TARFILE"
23 echo "gzip $TARFILE"
24 echo "And then upload "
25 echo "$TARFILE.gz $TARFILE.asc"
26 echo "to pub/samba/samba4/ on samba.org"