Last change
on this file since 738 was 414, checked in by Herwig Bauernfeind, 15 years ago |
Samba 3.5.0: Initial import
|
File size:
1.4 KB
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
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
|
---|
8 |
|
---|
9 | OUTDIR=`mktemp -d samba-XXXXX`
|
---|
10 | (git archive --format=tar HEAD | (cd $OUTDIR/ && tar xf -))
|
---|
11 |
|
---|
12 | echo SAMBA_VERSION_IS_GIT_SNAPSHOT=no >> $OUTDIR/source4/VERSION
|
---|
13 |
|
---|
14 | rm -f $OUTDIR/source4/ldap_server/devdocs/rfc????.txt \
|
---|
15 | $OUTDIR/source4/heimdal/lib/wind/rfc????.txt
|
---|
16 |
|
---|
17 | #Prepare the tarball for a Samba4 release, with some generated files,
|
---|
18 | #but without Samba3 stuff (to avoid confusion)
|
---|
19 | ( cd $OUTDIR/ || exit 1
|
---|
20 | rm -rf README Manifest Read-Manifest-Now Roadmap source3 packaging docs-xml examples swat WHATSNEW.txt MAINTAINERS || exit 1
|
---|
21 | cd source4 || exit 1
|
---|
22 | ./autogen.sh || exit 1
|
---|
23 | ./configure || exit 1
|
---|
24 | make dist || exit 1
|
---|
25 | ) || exit 1
|
---|
26 |
|
---|
27 | VERSION_FILE=$OUTDIR/source4/version.h
|
---|
28 | if [ ! -f $VERSION_FILE ]; then
|
---|
29 | echo "Cannot find version.h at $VERSION_FILE"
|
---|
30 | exit 1;
|
---|
31 | fi
|
---|
32 |
|
---|
33 | VERSION=`sed -n 's/^SAMBA_VERSION_STRING=//p' $VERSION_FILE`
|
---|
34 | echo "Version: $VERSION"
|
---|
35 | mv $OUTDIR samba-$VERSION || exit 1
|
---|
36 | tar -cf samba-$VERSION.tar samba-$VERSION || (rm -rf samba-$VERSION; exit 1)
|
---|
37 | rm -rf samba-$VERSION || exit 1
|
---|
38 | echo "Now run: "
|
---|
39 | echo "gpg --detach-sign --armor samba-$VERSION.tar"
|
---|
40 | echo "gzip samba-$VERSION.tar"
|
---|
41 | echo "And then upload "
|
---|
42 | echo "samba-$VERSION.tar.gz samba-$VERSION.tar.asc"
|
---|
43 | echo "to pub/samba/samba4/ on samba.org"
|
---|
44 |
|
---|
45 |
|
---|
46 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.