summaryrefslogtreecommitdiff
path: root/release-scripts
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2008-02-29 16:34:07 +0100
committerKarolin Seeger <ks@sernet.de>2008-02-29 17:03:00 +0100
commit40ad573190068c8bcad74deff5308cb36871db0a (patch)
tree5e1d9af9fdd29bc588bd6300cb208318984cf342 /release-scripts
parent6d1029607dd372b48ec43c259c8e16f779c89c1f (diff)
downloadsamba-40ad573190068c8bcad74deff5308cb36871db0a.tar.gz
Fix release script.
(This used to be commit 400609bce5cd1ce7e3330b9f00bb1f08de9d3a12)
Diffstat (limited to 'release-scripts')
-rwxr-xr-xrelease-scripts/create-tarball13
1 files changed, 10 insertions, 3 deletions
diff --git a/release-scripts/create-tarball b/release-scripts/create-tarball
index 459227262d7..7dcc6c3b199 100755
--- a/release-scripts/create-tarball
+++ b/release-scripts/create-tarball
@@ -19,7 +19,7 @@ if [ $? -ne 0 ]; then
fi
VER_H=source/include/version.h
-(cd source && ./autogen.sh)
+(cd source && ./script/mkversion.sh)
if [ ! -f $VER_H ]; then
echo "Failed to find $VER_H! Exiting...."
@@ -27,7 +27,10 @@ if [ ! -f $VER_H ]; then
fi
version=`grep SAMBA_VERSION_OFFICIAL_STRING $VER_H | awk '{print $3}'`
-version="$version-`grep SAMBA_VERSION_VENDOR_SUFFIX $VER_H | awk '{print $3}'`"
+vendor_version=`grep SAMBA_VERSION_VENDOR_SUFFIX $VER_H | awk '{print $3}'`
+if [ -n "$vendor_version" ]; then
+ version="$version-$vendor_version"
+fi
version=`echo $version | sed 's/\"//g'`
echo "Creating release tarball for Samba $version"
@@ -49,7 +52,7 @@ if [ "x$docsdir" != "x" ]; then
/bin/rm -rf docs
mkdir docs
- rsync -a $docsdir/ docs/
+ rsync -a --exclude=.svn $docsdir/ docs/
cd docs
/bin/rm -rf test.pdf Samba4*pdf htmldocs/Samba4* htmldocs/test
@@ -58,6 +61,10 @@ if [ "x$docsdir" != "x" ]; then
cd ..
fi
+cd source
+./autogen.sh
+cd ..
+
cd ..
tar cf samba-${version}.tar --exclude=.git* --exclude=CVS --exclude=.svn samba-${version}
gpg --detach-sign --armor samba-${version}.tar