diff options
author | Gerald Carter <jerry@samba.org> | 2004-02-02 14:46:20 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-02-02 14:46:20 +0000 |
commit | 3780ee9ea08b780cfddcd6932c71c4107f8dce0d (patch) | |
tree | 4a3589e1dab1b85a64fe2fd8b70c335c077dfc05 | |
parent | 655ec168288159f5c0961ed8cbdd84c4e14eab26 (diff) | |
download | samba-3780ee9ea08b780cfddcd6932c71c4107f8dce0d.tar.gz samba-3780ee9ea08b780cfddcd6932c71c4107f8dce0d.tar.xz samba-3780ee9ea08b780cfddcd6932c71c4107f8dce0d.zip |
update script to build a tarball from the cvs tree
-rw-r--r-- | make-tarball.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/make-tarball.sh b/make-tarball.sh index 1eb05db70dc..f3250d5c732 100644 --- a/make-tarball.sh +++ b/make-tarball.sh @@ -6,6 +6,7 @@ ## ## Usgae: ./make-tarball.sh +DOCSDIR=../samba-docs/ USING_SAMBA=../using_samba/ SRCDIR=`pwd` @@ -21,6 +22,17 @@ if [ ! -d $USING_SAMBA ]; then 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 @@ -31,6 +43,8 @@ echo Creating the tarball source directory in $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... |