From 909aa78199056122d2cd6849d8a5249ef4b502b6 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 16 Apr 2003 18:45:54 +0000 Subject: [PATCH] automatically generate autoconf scripts for tarballs --- direct/src/directscripts/make-panda3d-tgz.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/direct/src/directscripts/make-panda3d-tgz.py b/direct/src/directscripts/make-panda3d-tgz.py index 99626c7c3d..eaa8a6e7a6 100755 --- a/direct/src/directscripts/make-panda3d-tgz.py +++ b/direct/src/directscripts/make-panda3d-tgz.py @@ -95,15 +95,29 @@ if os.path.exists(docdir): os.remove(file) os.rmdir(docdir) +# Generate the autoconf scripts for ppremake. +if MODULE == 'ppremake': + ppremakedir = basename +else: + ppremakedir = basename + os.sep + 'ppremake' +if os.path.exists(ppremakedir): + cmd = 'cd "./%s" && aclocal && autoheader && automake --foreign -a && autoconf' % (ppremakedir) + if os.system(cmd) != 0: + sys.exit(1) + # Generate the tarball. -cmd = 'tar cvzf "%s" "%s"' % (tarfile, basename) +print 'Generating %s' % (tarfile) +if os.path.exists(tarfile): + os.remove(tarfile) +cmd = 'tar cf - "%s" | gzip -9 > "%s"' % (basename, tarfile) if os.system(cmd) != 0: sys.exit(1) -# Also generate a .zip file. +# Also generate a zip file. +print 'Generating %s' % (zipfile) if os.path.exists(zipfile): os.remove(zipfile) -cmd = 'zip -9r "%s" "%s"' % (zipfile, basename) +cmd = 'zip -9rq "%s" "%s"' % (zipfile, basename) if os.system(cmd) != 0: sys.exit(1)