diff options
author | CVS Import User <samba-bugs@samba.org> | 2004-04-04 09:21:52 +0000 |
---|---|---|
committer | CVS Import User <samba-bugs@samba.org> | 2004-04-04 09:21:52 +0000 |
commit | 9f765b7406282904ce56f2535dcd929a9aefc5ca (patch) | |
tree | dbdff78b624ac7c1afcb8851f395df3d99eb1f84 /make-tarball.sh | |
parent | 111b4e05ab96eafc4212f38dc5977538907187c7 (diff) | |
download | samba-9f765b7406282904ce56f2535dcd929a9aefc5ca.tar.gz samba-9f765b7406282904ce56f2535dcd929a9aefc5ca.tar.xz samba-9f765b7406282904ce56f2535dcd929a9aefc5ca.zip |
r2: import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunk
metze
Diffstat (limited to 'make-tarball.sh')
-rw-r--r-- | make-tarball.sh | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/make-tarball.sh b/make-tarball.sh new file mode 100644 index 00000000000..1eb05db70dc --- /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 ) |