From 1342f55aede9ac76b126b4509afdff7be7dfee32 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 19 Feb 2003 02:31:35 +0000 Subject: [PATCH] add make-panda3d-tgz --- direct/src/directscripts/make-panda3d-tgz.sh | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 direct/src/directscripts/make-panda3d-tgz.sh diff --git a/direct/src/directscripts/make-panda3d-tgz.sh b/direct/src/directscripts/make-panda3d-tgz.sh new file mode 100755 index 0000000000..539860a16c --- /dev/null +++ b/direct/src/directscripts/make-panda3d-tgz.sh @@ -0,0 +1,28 @@ +#! /bin/sh +# +# This script generates the panda3d-date.tar.gz tarball for a file +# release of panda3d onto the SourceForge download site. +# + +module=panda3d +basename=$module-`date +%F` +cvsroot=:pserver:anonymous@nit:/cvsroot/panda3d + +if [ -e $basename ]; then + echo $basename already exists in the local directory! + exit 1 +fi + +echo Checking out $module as $basename. +cvs -f -d $cvsroot export -r HEAD -d $basename $module || exit + +# Move the contents of the doc module into the root directory where +# people will expect to see it. +mv $basename/doc/* $basename || exit +rmdir $basename/doc || exit + +# Generate the tarball. +tarfile=$basename.tar.gz +tar cvzf $tarfile $basename || exit +rm -rf $basename +