Added sample bams

This commit is contained in:
Josh Yelon
2007-06-17 00:29:20 +00:00
parent 79667c9186
commit 8c4ac7a4e7

View File

@@ -4460,7 +4460,7 @@ if (OMIT.count("FREETYPE")==0) and (OMIT.count("PANDAAPP")==0):
#
# Generate the models directory
# Generate the models directory and samples directory
#
if (OMIT.count("PANDATOOL")==0):
@@ -4469,6 +4469,14 @@ if (OMIT.count("PANDATOOL")==0):
CompileAllModels("built/models/gui/", "dmodels/src/gui/")
CompileAllModels("built/models/", "models/")
if (os.path.isdir("samples")):
for tut in os.listdir("samples"):
dir = "samples/"+tut+"/models/"
if (os.path.isdir(dir)):
for eggpz in GetDirectoryContents(dir, ["*.egg.pz"]):
bampz = os.path.basename(eggpz[:-7] + ".bam.pz")
EnqueueBamPZ("-ps keep", dir + bampz, dir + eggpz)
CopyAllFiles("built/models/audio/sfx/", "dmodels/src/audio/sfx/", ".wav")
CopyAllFiles("built/models/icons/", "dmodels/src/icons/", ".gif")