Typo fix.
[Samba.git] / make-tarball.sh
blob1eb05db70dcb4f48acb3fd7b164cdd274e09058e
1 #!/bin/sh
3 ## A simple script to build a tarball of the current CVS tree.
4 ## You either need to include the using_samba cvs module in the
5 ## parent directory or tell the script where to find it
6 ##
7 ## Usgae: ./make-tarball.sh
9 USING_SAMBA=../using_samba/
10 SRCDIR=`pwd`
12 if [ ! -d $USING_SAMBA ]; then
14 echo Cannot find "Using Samba" directory \(assuming $USING_SAMBA\).
15 echo Please set the USING_SAMBA variable in this script to the correct
16 echo location. The html files are available in the using_samba CVS
17 echo module on cvs.samba.org. See http://cvs/samba.org/ for details
18 echo about anonymous CVS access. Exiting now....
20 exit 1
24 VERSION=`grep SAMBA_VERSION_OFFICIAL_STRING source/include/version.h | cut -d\" -f2 | sed 's/ /_/g'`
25 TARBALLDIR=/tmp/samba-$VERSION
27 echo Creating the tarball source directory in $TARBALLDIR
29 /bin/rm -rf $TARBALLDIR
30 /bin/rm -f samba-$VERSION.tar
32 mkdir $TARBALLDIR
33 rsync -aC ./ $TARBALLDIR
34 rsync -aC $USING_SAMBA $TARBALLDIR/docs/htmldocs/
36 echo Creating packaging scripts...
37 ( cd $TARBALLDIR/packaging; sh bin/update-pkginfo $VERSION 1 )
39 echo Creating source/configure...
40 ( cd $TARBALLDIR/source; ./autogen.sh )
42 echo Making tarball samba-$VERSION.tar in current directory...
43 ( cd `dirname $TARBALLDIR`; tar cf $SRCDIR/samba-$VERSION.tar samba-$VERSION )