diff options
Diffstat (limited to 'source4/script/mkrelease.sh')
-rwxr-xr-x | source4/script/mkrelease.sh | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/source4/script/mkrelease.sh b/source4/script/mkrelease.sh index 8e2ac0fcb9..a6e7c8493b 100755 --- a/source4/script/mkrelease.sh +++ b/source4/script/mkrelease.sh @@ -1,11 +1,24 @@ #!/bin/sh -VERSION=$1 +TMPDIR=`mktemp samba-XXXXX` +rm $TMPDIR || exit 1 +svn export . $TMPDIR || exit 1 -svn export . samba-$VERSION || exit 1 - -( cd samba-$VERSION/source +( cd $TMPDIR/source ./autogen.sh || exit 1 ./configure || exit 1 make dist || exit 1 -) && tar -zcf samba-$VERSION.tar.gz samba-$VERSION +) || 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 || exit 1 +echo "Now run: " +echo "gpg --detach-sign --armor samba-$VERSION.tar" +echo "gzip samba-$VERSION.tar" +echo "And then upload " +echo "samba-$VERSION.tar.gz samba-$VERSION.tar.asc" +echo "to pub/samba/samba4/ on samba.org" + + + |