s4-subdomain: match windows form for trustAuthInOutBlob
[samba.git] / source4 / script / mkrelease.sh
index 0af738deb52e3a647c4ad634f99e339ef42c8511..19a1ade376bc1122d5ebdfd3dda021b86ff7b6cf 100755 (executable)
@@ -1,30 +1,19 @@
-#!/bin/sh
+#!/bin/bash
 
-if [ ! -d ".git" -o `dirname $0` != "./source/script" ]; then
+if [ ! -d ".git" -o `dirname $0` != "./source4/script" ]; then
        echo "Run this script from the top-level directory in the"
-       echo "repository as: ./source/script/mkrelease.sh"
+       echo "repository as: ./source4/script/mkrelease.sh"
        exit 1
 fi
 
-TMPDIR=`mktemp -d samba-XXXXX`
-(git archive --format=tar HEAD | (cd $TMPDIR/ && tar xf -))
+./buildtools/bin/waf dist
+TGZFILE="`echo *.tar.gz`"
+gunzip $TGZFILE
+TARFILE="`echo *.tar`"
 
-( cd $TMPDIR/source || exit 1
- ./autogen.sh || exit 1
- ./configure || exit 1
- make dist  || exit 1
-) || exit 1
-
-VERSION=`sed -n 's/^SAMBA_VERSION_STRING=//p' $TMPDIR/source/version.h`
-mv $TMPDIR samba-$VERSION || exit 1
-tar -cf samba-$VERSION.tar samba-$VERSION || (rm -rf samba-$VERSION; exit 1)
-rm -rf samba-$VERSION || exit 1
 echo "Now run: "
-echo "gpg --detach-sign --armor samba-$VERSION.tar"
-echo "gzip samba-$VERSION.tar" 
+echo "gpg --detach-sign --armor $TARFILE"
+echo "gzip $TARFILE"
 echo "And then upload "
-echo "samba-$VERSION.tar.gz samba-$VERSION.tar.asc" 
+echo "$TARFILE.gz $TARFILE.asc"
 echo "to pub/samba/samba4/ on samba.org"
-
-
-