mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Remove references to SourceForge CVS repository
This commit is contained in:
parent
9f85086c10
commit
d8f655479a
@ -1,44 +0,0 @@
|
||||
##############################################################################
|
||||
#
|
||||
# cleancvstree
|
||||
#
|
||||
# Cleancvstree searches a CVS tree for files that are not in CVS, and
|
||||
# deletes them. Be careful using it --- it's very aggressive.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import sys,os
|
||||
|
||||
def cleanCvsTree(dir):
|
||||
try:
|
||||
sub = os.listdir(dir)
|
||||
except:
|
||||
print "Could not read directory: "+dir
|
||||
return
|
||||
valid = {}
|
||||
try:
|
||||
readentries = 0
|
||||
cvsent = open(dir + "/CVS/Entries")
|
||||
for line in cvsent:
|
||||
words = line.split("/")
|
||||
if (len(words) > 1):
|
||||
valid[words[1]] = 1
|
||||
cvsent.close()
|
||||
readentries = 1
|
||||
except:
|
||||
print "Could not read "+dir+"/CVS/Entries"
|
||||
if (readentries):
|
||||
for file in sub:
|
||||
if (os.path.isfile(dir+"/"+file)):
|
||||
if (valid.has_key(file)==0):
|
||||
os.unlink(dir+"/"+file)
|
||||
for file in sub:
|
||||
if (file != "CVS"):
|
||||
if (os.path.isdir(dir+"/"+file)):
|
||||
cleanCvsTree(dir+"/"+file)
|
||||
|
||||
if (os.path.isdir(sys.argv[1])==0):
|
||||
print "Not a directory: "+sys.argv[1]
|
||||
os.exit(1)
|
||||
|
||||
cleanCvsTree(sys.argv[1])
|
@ -1,124 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""This script generates the panda3d-date.tar.gz tarball for a file
|
||||
release of panda3d onto the SourceForge download site.
|
||||
|
||||
Options:
|
||||
|
||||
-d cvsroot
|
||||
Specifies the CVSROOT string to use to tag and export the
|
||||
tree. The default is $SFROOT if it is defined, or $CVSROOT
|
||||
otherwise.
|
||||
|
||||
-r tag
|
||||
Specifies the tag to export from. If this parameter is
|
||||
specified, the tree is not tagged again; otherwise, the
|
||||
current head of the CVS tree is tagged with the file version
|
||||
name.
|
||||
|
||||
-m module
|
||||
Specifies the module to check out and build. The default is
|
||||
panda3d.
|
||||
"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
import os.path
|
||||
import getopt
|
||||
import time
|
||||
import glob
|
||||
import shutil
|
||||
|
||||
CVSROOT = os.getenv('SFROOT') or os.getenv('CVSROOT')
|
||||
ORIGTAG = ''
|
||||
MODULE = 'panda3d'
|
||||
|
||||
def usage(code, msg = ''):
|
||||
print >> sys.stderr, __doc__
|
||||
print >> sys.stderr, msg
|
||||
sys.exit(code)
|
||||
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], 'd:r:m:h')
|
||||
except getopt.error, msg:
|
||||
usage(1, msg)
|
||||
|
||||
for opt, arg in opts:
|
||||
if opt == '-d':
|
||||
CVSROOT = arg
|
||||
elif opt == '-r':
|
||||
ORIGTAG = arg
|
||||
elif opt == '-m':
|
||||
MODULE = arg
|
||||
elif opt == '-h':
|
||||
usage(0)
|
||||
|
||||
if not CVSROOT:
|
||||
usage(1, 'CVSROOT must have a value.')
|
||||
|
||||
if not MODULE:
|
||||
usage(1, 'MODULE must have a value.')
|
||||
|
||||
basename = MODULE + '-' + time.strftime("%Y-%m-%d")
|
||||
tarfile = basename + '.tar.gz'
|
||||
zipfile = basename + '.zip'
|
||||
|
||||
if os.path.exists(basename):
|
||||
print basename, 'already exists in the local directory!'
|
||||
sys.exit(1)
|
||||
|
||||
if not ORIGTAG:
|
||||
# If we weren't given a starting tag, make one.
|
||||
tag = basename
|
||||
|
||||
print 'Tagging sources.'
|
||||
cmd = 'cvs -f -d "%s" rtag -F -r HEAD "%s" "%s"' % (CVSROOT, tag, MODULE)
|
||||
if os.system(cmd) != 0:
|
||||
sys.exit(1)
|
||||
else:
|
||||
# Otherwise, we were given a starting tag, so use it.
|
||||
tag = ORIGTAG
|
||||
|
||||
print 'Checking out "%s" as "%s".' % (MODULE, basename)
|
||||
cmd = 'cvs -z3 -f -d "%s" export -r "%s" -d "%s" "%s"' % (CVSROOT, tag,
|
||||
basename, MODULE)
|
||||
if os.system(cmd) != 0:
|
||||
sys.exit(1)
|
||||
|
||||
# Move the contents of the doc module into the root directory where people
|
||||
# will expect to see it.
|
||||
docdir = basename + os.sep + 'doc'
|
||||
if os.path.exists(docdir):
|
||||
files = glob.glob(docdir + os.sep + '*')
|
||||
for file in files:
|
||||
shutil.copy(file, basename)
|
||||
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.
|
||||
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.
|
||||
print 'Generating %s' % (zipfile)
|
||||
if os.path.exists(zipfile):
|
||||
os.remove(zipfile)
|
||||
cmd = 'zip -9rq "%s" "%s"' % (zipfile, basename)
|
||||
if os.system(cmd) != 0:
|
||||
sys.exit(1)
|
||||
|
||||
shutil.rmtree(basename)
|
@ -21,7 +21,7 @@ goto done
|
||||
|
||||
:missing2
|
||||
echo You seem to be missing the 'thirdparty' directory. You probably checked
|
||||
echo the source code out from sourceforge. The sourceforge repository is
|
||||
echo the source code out from GitHub. The GitHub repository is
|
||||
echo missing the 'thirdparty' directory. You will need to supplement the
|
||||
echo code by downloading the 'thirdparty' directory from www.panda3d.org
|
||||
goto done
|
||||
|
@ -21,7 +21,7 @@ goto done
|
||||
|
||||
:missing2
|
||||
echo You seem to be missing the 'thirdparty' directory. You probably checked
|
||||
echo the source code out from sourceforge. The sourceforge repository is
|
||||
echo the source code out from GitHub. The GitHub repository is
|
||||
echo missing the 'thirdparty' directory. You will need to supplement the
|
||||
echo code by downloading the 'thirdparty' directory from www.panda3d.org
|
||||
goto done
|
||||
|
@ -21,7 +21,7 @@ goto done
|
||||
|
||||
:missing2
|
||||
echo You seem to be missing the 'thirdparty' directory. You probably checked
|
||||
echo the source code out from sourceforge. The sourceforge repository is
|
||||
echo the source code out from GitHub. The GitHub repository is
|
||||
echo missing the 'thirdparty' directory. You will need to supplement the
|
||||
echo code by downloading the 'thirdparty' directory from www.panda3d.org
|
||||
goto done
|
||||
|
@ -31,7 +31,7 @@ goto done
|
||||
:missing2
|
||||
echo %thirdparty%
|
||||
echo You seem to be missing the 'thirdparty' directory. You probably checked
|
||||
echo the source code out from sourceforge. The sourceforge repository is
|
||||
echo the source code out from GitHub. The GitHub repository is
|
||||
echo missing the 'thirdparty' directory. You will need to supplement the
|
||||
echo code by downloading the 'thirdparty' directory from www.panda3d.org
|
||||
goto done
|
||||
|
@ -1,95 +0,0 @@
|
||||
VC7 upgrade instructions in 2 easy steps
|
||||
------------------------
|
||||
Step 1. cvs update wintools & dtool
|
||||
|
||||
Step 2. Run v:\msvc7\vc_setup\setup.exe, or install from the MSDN
|
||||
'Visual Studio.NET' CD. Click on 'Windows Component Update' (if it is
|
||||
highlighted, else click '2'). Click 'Continue' (Selecting 'Do not use
|
||||
this machine to host web projects') You will install IE6, which will
|
||||
requires a reboot. Give your pw if you want it to happen
|
||||
automatically.
|
||||
|
||||
After rebooting, setup should start again. If it does not, go back and
|
||||
rerun it, it should remember where it left off.
|
||||
|
||||
After installing components, you are ready to install VC7 in Step 2.
|
||||
Enter this step and enter the product-key, which is stored in
|
||||
V:\msvc7\vc7-prodkey.txt
|
||||
|
||||
On the 'select items to install page', you need uncheck things to
|
||||
avoid wasting gigs of extra space and install time. Uncheck
|
||||
everything except for Language Tools->Visual C++, Server
|
||||
Components->Remote Debugger->Native Remote Debugger, and if you want,
|
||||
Documentation (this is a gig, and is only a slight update if you
|
||||
already have MSDN installed locally though. You will want to
|
||||
uninstall the separately-installed MSDN docs if you get this.)
|
||||
|
||||
Unlike VC 6.0, there is no option to add the required compiler bin
|
||||
directories to the environment path automatically. To do this, if you
|
||||
are running from the NT command line, run
|
||||
"C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\vcvars32.bat"
|
||||
|
||||
If you are using tcsh.exe under cygwin, enable VC7 using
|
||||
'source $WINTOOLS/etc/setup_msvc7.csh'
|
||||
|
||||
You will want to copy the top portion of setup_msvc7.csh to your
|
||||
.cshrc, so you can do 'set_msvc7' to set up the PATH properly in the
|
||||
future, or you can add the required dirs to the front of your path
|
||||
explicitly as well as 'setenv USE_COMPILER MSVC7' to always use VC7.
|
||||
The easiest thing to do is just put the 'set_msvc7' at the end of your
|
||||
.cshrc.
|
||||
|
||||
IMPORTANT:
|
||||
|
||||
After finishing this process, make sure you are using VC7 in your
|
||||
shell by typing 'cl' at the prompt. If you see:
|
||||
|
||||
> Microsoft (R)32-bit C/C++ Optimizing Compiler Version 13.00.9466 for 80x86
|
||||
> Copyright (C) Microsoft Corporation 1984-2001.
|
||||
|
||||
then you have VC7. If you have still VC6, you will see
|
||||
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
|
||||
> Copyright (C) Microsoft Corp 1984-1998.
|
||||
|
||||
If you try to build with this broken setup, the build process
|
||||
will get confused and compile with VC6 but try to link with
|
||||
the VC7 libraries and you will get link errors.
|
||||
|
||||
To correct this problem, check your tcsh path to make sure it has the
|
||||
.NET dirs in it, and make sure the cygwin softlink mount point /msvc7
|
||||
exists, and is not empty but points to the proper VC7 directory. Doing
|
||||
'ls /msvc7' should give you something like
|
||||
|
||||
Common7/ Visual Studio .NET Enterprise Architect - English/
|
||||
Crystal Reports/ Visual Studio SDKs/
|
||||
EnterpriseFrameworks/ contents.htm
|
||||
FrameworkSDK/ readme.htm
|
||||
Msdn/ redist.txt
|
||||
Setup/ sqlserver/
|
||||
Vb7/ toc.htm
|
||||
Vc7/ vdt70vcs.dll*
|
||||
|
||||
If it does not, try running 'source ~/player/wintools/etc/setup_env.csh'
|
||||
again to get it to do the
|
||||
'mount -s C:/Program\ Files/Microsoft\ Visual\ Studio\ .NET /msvc7'
|
||||
cmd to create the softlink, or run the cmd yourself.
|
||||
|
||||
---
|
||||
Notes:
|
||||
The debug C runtime seems significantly slower than the vc6 one, which has
|
||||
slowed Opt2 install builds considerably.
|
||||
---------
|
||||
To distribute toontown,
|
||||
We need to rebuild the python and nspr DLLs to link to the new
|
||||
VC7 C and C++ runtime DLLs, which are
|
||||
msvcp70.dll
|
||||
msvcr70.dll
|
||||
|
||||
and these must replace
|
||||
msvcp60.dll
|
||||
msvcrt.dll
|
||||
in the Toontown download.
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user