copy bobtoolz content during setup

This commit is contained in:
Timothee Besset 2017-04-22 13:48:20 -05:00
parent 6bf30aea6b
commit cbb3fc5f03

View file

@ -261,7 +261,7 @@ class Config:
svnurl = 'svn://svn.icculus.org/gtkradiant-gamepacks/%s/trunk' % pak
self.CheckoutOrUpdate( svnurl, os.path.join( path, 'installs', pak ) )
def CopyTree( self, src, dst):
def CopyTree( self, src, dst ):
for root, dirs, files in os.walk( src ):
target_dir = os.path.join( dst, root[root.find( '/' )+1:] )
print ( target_dir )
@ -366,6 +366,11 @@ class Config:
]:
shutil.copy( os.path.join( srcdir, x64_dll ), 'install/x64' )
# copy extra bobtoolz content
if ( os.path.exists( 'install/modules/bt' ) ):
shutil.rmtree( 'install/modules/bt' )
shutil.copytree( 'contrib/bobtoolz/bt', 'install/modules/bt' )
self.CloneBSPC()
def CloneBSPC( self ):