Browse Source

add make-panda3d-tgz

David Rose 23 years ago
parent
commit
1342f55aed
1 changed files with 28 additions and 0 deletions
  1. 28 0
      direct/src/directscripts/make-panda3d-tgz.sh

+ 28 - 0
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
+