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 | a2d79f9988a87b86cd61e6a5ac263eb45b5668b7 (patch) | |
tree | c7b228004fb605a6581abb85a68da66b2d9dabe0 /make-tarball.sh | |
parent | 7847b611acff4ed2453aaacdd1455ceaf84bb431 (diff) | |
download | samba-a2d79f9988a87b86cd61e6a5ac263eb45b5668b7.tar.gz |
update script to build a tarball from the cvs tree
(This used to be commit 3780ee9ea08b780cfddcd6932c71c4107f8dce0d)
Diffstat (limited to 'make-tarball.sh')
-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... |