1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

s4-mkrelease: Update for waf.

This commit is contained in:
Jelmer Vernooij 2010-09-20 14:41:29 -07:00
parent aa8a2e3105
commit db67f43aef

View File

@ -6,36 +6,21 @@ if [ ! -d ".git" -o `dirname $0` != "./source4/script" ]; then
exit 1 exit 1
fi fi
OUTDIR=`mktemp -d samba-XXXXX` cd source4
(git archive --format=tar HEAD | (cd $OUTDIR/ && tar xf -)) ../buildtools/bin/waf dist
#Prepare the tarball for a Samba4 release, with some generated files, TGZFILE="`echo *.tar.gz`"
#but without Samba3 stuff (to avoid confusion) gunzip $TGZFILE
( cd $OUTDIR/ || exit 1 TARFILE="`echo *.tar`"
rm -rf README Manifest Read-Manifest-Now Roadmap source3 packaging docs-xml examples swat WHATSNEW.txt MAINTAINERS source4/autogen-autotools.sh || exit 1 tar xf $TARFILE
cd source4 || exit 1 DIRN="`echo -n $TARFILE | sed -e 's/\.tar//'`"
./autogen.sh || exit 1 cd $DIRN/source4 && ./autogen.sh && cd ../..
./configure || exit 1 tar cf $TARFILE $DIRN
make dist || exit 1 rm -r "$DIRN"
) || exit 1
VERSION_FILE=$OUTDIR/source4/bin/default/source4/include/config.h
if [ ! -f $VERSION_FILE ]; then
echo "Cannot find version.h at $VERSION_FILE"
exit 1;
fi
VERSION=`sed -n 's/^PACKAGE_VERSION //p' $VERSION_FILE`
echo "Version: $VERSION"
mv $OUTDIR 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 "Now run: "
echo "gpg --detach-sign --armor samba-$VERSION.tar" echo "gpg --detach-sign --armor $TARFILE"
echo "gzip samba-$VERSION.tar" echo "gzip $TARFILE"
echo "And then upload " 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" echo "to pub/samba/samba4/ on samba.org"