summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-09-09 18:28:41 +0000
committerGerald Carter <jerry@samba.org>2003-09-09 18:28:41 +0000
commitb7aaa707fec8b7a2231e82322eb025566a456796 (patch)
tree69b17aaec40ad967fee68a8523c1e888acead791
parentf83a6ce2adbdd471809ccbcfd69dc3fcf6d89129 (diff)
downloadsamba-b7aaa707fec8b7a2231e82322eb025566a456796.tar.gz
samba-b7aaa707fec8b7a2231e82322eb025566a456796.tar.bz2
samba-b7aaa707fec8b7a2231e82322eb025566a456796.zip
add missing file from 3.0
(This used to be commit 8c27bfaa3fbea96d947814071b323c31e7c77701)
-rw-r--r--make-tarball.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/make-tarball.sh b/make-tarball.sh
new file mode 100644
index 0000000000..1eb05db70d
--- /dev/null
+++ b/make-tarball.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+## A simple script to build a tarball of the current CVS tree.
+## You either need to include the using_samba cvs module in the
+## parent directory or tell the script where to find it
+##
+## Usgae: ./make-tarball.sh
+
+USING_SAMBA=../using_samba/
+SRCDIR=`pwd`
+
+if [ ! -d $USING_SAMBA ]; then
+
+ echo Cannot find "Using Samba" directory \(assuming $USING_SAMBA\).
+ echo Please set the USING_SAMBA variable in this script to the correct
+ echo location. The html files are available in the using_samba CVS
+ echo module on cvs.samba.org. See http://cvs/samba.org/ for details
+ echo about anonymous CVS access. Exiting now....
+
+ exit 1
+
+fi
+
+VERSION=`grep SAMBA_VERSION_OFFICIAL_STRING source/include/version.h | cut -d\" -f2 | sed 's/ /_/g'`
+TARBALLDIR=/tmp/samba-$VERSION
+
+echo Creating the tarball source directory in $TARBALLDIR
+
+/bin/rm -rf $TARBALLDIR
+/bin/rm -f samba-$VERSION.tar
+
+mkdir $TARBALLDIR
+rsync -aC ./ $TARBALLDIR
+rsync -aC $USING_SAMBA $TARBALLDIR/docs/htmldocs/
+
+echo Creating packaging scripts...
+( cd $TARBALLDIR/packaging; sh bin/update-pkginfo $VERSION 1 )
+
+echo Creating source/configure...
+( cd $TARBALLDIR/source; ./autogen.sh )
+
+echo Making tarball samba-$VERSION.tar in current directory...
+( cd `dirname $TARBALLDIR`; tar cf $SRCDIR/samba-$VERSION.tar samba-$VERSION )