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
7 ## Usgae: ./make-tarball.sh
10 USING_SAMBA
=..
/using_samba
/
13 if [ ! -d $USING_SAMBA ]; then
15 echo Cannot
find "Using Samba" directory \
(assuming
$USING_SAMBA\
).
16 echo Please
set the USING_SAMBA variable
in this
script to the correct
17 echo location. The html files are available
in the using_samba CVS
18 echo module on cvs.samba.org. See http
://cvs
/samba.org
/ for details
19 echo about anonymous CVS access. Exiting now....
25 if [ ! -d $DOCSDIR ]; then
27 echo Cannot
find samba-docs \
(assuming
$DOCSDIR\
).
28 echo Please
set the DOCSDIR variable
in this
script
29 echo to the correct path.
36 VERSION
=`grep SAMBA_VERSION_OFFICIAL_STRING source/include/version.h | cut -d\" -f2 | sed 's/ /_/g'`
37 TARBALLDIR
=/tmp
/samba-
$VERSION
39 echo Creating the tarball
source directory
in $TARBALLDIR
41 /bin
/rm -rf $TARBALLDIR
42 /bin
/rm -f samba-
$VERSION.
tar
45 rsync
-aC .
/ $TARBALLDIR
46 /bin
/rm -rf $TARBALLDIR/docs
/*
47 rsync
-aC $DOCSDIR/ $TARBALLDIR/docs
/
48 rsync
-aC $USING_SAMBA $TARBALLDIR/docs
/htmldocs
/
50 echo Creating packaging scripts...
51 ( cd $TARBALLDIR/packaging
; sh bin
/update-pkginfo
$VERSION 1 )
53 echo Creating source
/configure...
54 ( cd $TARBALLDIR/source; .
/autogen.sh
)
56 echo Making tarball samba-
$VERSION.
tar in current directory...
57 ( cd `dirname $TARBALLDIR`; tar cf
$SRCDIR/samba-
$VERSION.
tar samba-
$VERSION )