update script to build a tarball from the cvs tree
authorGerald Carter <jerry@samba.org>
Mon, 2 Feb 2004 14:46:20 +0000 (14:46 +0000)
committerGerald Carter <jerry@samba.org>
Mon, 2 Feb 2004 14:46:20 +0000 (14:46 +0000)
(This used to be commit 3780ee9ea08b780cfddcd6932c71c4107f8dce0d)

make-tarball.sh

index 1eb05db70dcb4f48acb3fd7b164cdd274e09058e..f3250d5c7323daabdbb6312393c9489339388352 100644 (file)
@@ -6,6 +6,7 @@
 ##
 ## Usgae:  ./make-tarball.sh
 
 ##
 ## Usgae:  ./make-tarball.sh
 
+DOCSDIR=../samba-docs/
 USING_SAMBA=../using_samba/
 SRCDIR=`pwd`
 
 USING_SAMBA=../using_samba/
 SRCDIR=`pwd`
 
@@ -21,6 +22,17 @@ if [ ! -d $USING_SAMBA ]; then
 
 fi
 
 
 fi
 
+if [ ! -d $DOCSDIR ]; then
+
+       echo Cannot find samba-docs \(assuming $DOCSDIR\).
+       echo Please set the DOCSDIR variable in this script 
+       echo to the correct path.
+
+       exit 1
+
+fi
+
+
 VERSION=`grep SAMBA_VERSION_OFFICIAL_STRING source/include/version.h | cut -d\" -f2 | sed 's/ /_/g'`
 TARBALLDIR=/tmp/samba-$VERSION
 
 VERSION=`grep SAMBA_VERSION_OFFICIAL_STRING source/include/version.h | cut -d\" -f2 | sed 's/ /_/g'`
 TARBALLDIR=/tmp/samba-$VERSION
 
@@ -31,6 +43,8 @@ echo Creating the tarball source directory in $TARBALLDIR
 
 mkdir $TARBALLDIR
 rsync -aC ./ $TARBALLDIR
 
 mkdir $TARBALLDIR
 rsync -aC ./ $TARBALLDIR
+/bin/rm -rf $TARBALLDIR/docs/*
+rsync -aC $DOCSDIR/ $TARBALLDIR/docs/ 
 rsync -aC $USING_SAMBA $TARBALLDIR/docs/htmldocs/
 
 echo Creating packaging scripts...
 rsync -aC $USING_SAMBA $TARBALLDIR/docs/htmldocs/
 
 echo Creating packaging scripts...