mirror of
https://github.com/samba-team/samba.git
synced 2024-12-31 17:18:04 +03:00
r24821: Update the mkrelease.sh script and mkversion.sh to make releasing correct
Samba4 tarballs harder to screw up. Andrew Bartlett
This commit is contained in:
parent
6245da195b
commit
b17e1c7832
@ -1,11 +1,24 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
VERSION=$1
|
TMPDIR=`mktemp samba-XXXXX`
|
||||||
|
rm $TMPDIR || exit 1
|
||||||
|
svn export . $TMPDIR || exit 1
|
||||||
|
|
||||||
svn export . samba-$VERSION || exit 1
|
( cd $TMPDIR/source
|
||||||
|
|
||||||
( cd samba-$VERSION/source
|
|
||||||
./autogen.sh || exit 1
|
./autogen.sh || exit 1
|
||||||
./configure || exit 1
|
./configure || exit 1
|
||||||
make dist || 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"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -174,6 +174,10 @@ if test -n "${SAMBA_VERSION_VENDOR_SUFFIX}";then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "/* Version for mkrelease.sh: " >> $OUTPUT_FILE
|
||||||
|
echo "SAMBA_VERSION_STRING=$SAMBA_VERSION_STRING" >> $OUTPUT_FILE
|
||||||
|
echo "*/" >> $OUTPUT_FILE
|
||||||
|
|
||||||
##
|
##
|
||||||
## Add a release nickname
|
## Add a release nickname
|
||||||
##
|
##
|
||||||
|
Loading…
Reference in New Issue
Block a user