Merge branch 'atys' into develop-atys
commit
759ece01d0
@ -1,94 +1,94 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Run all export processes
|
# \brief Run all export processes
|
||||||
# \date 2009-02-18 09:22GMT
|
# \date 2009-02-18 09:22GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Run all export processes
|
# Run all export processes
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
||||||
sys.path.append("configuration")
|
sys.path.append("configuration")
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Ryzom Core - Build Gamedata - Export')
|
parser = argparse.ArgumentParser(description='Ryzom Core - Build Gamedata - Export')
|
||||||
# parser.add_argument('--haltonerror', '-eh', action='store_true')
|
# parser.add_argument('--haltonerror', '-eh', action='store_true')
|
||||||
parser.add_argument('--includeproject', '-ipj', nargs='+')
|
parser.add_argument('--includeproject', '-ipj', nargs='+')
|
||||||
parser.add_argument('--excludeproject', '-epj', nargs='+')
|
parser.add_argument('--excludeproject', '-epj', nargs='+')
|
||||||
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
||||||
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if not args.includeproject == None and not args.excludeproject == None:
|
if not args.includeproject == None and not args.excludeproject == None:
|
||||||
print "ERROR --includeproject cannot be combined with --excludeproject, exit."
|
print "ERROR --includeproject cannot be combined with --excludeproject, exit."
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
if not args.includeprocess == None and not args.excludeprocess == None:
|
if not args.includeprocess == None and not args.excludeprocess == None:
|
||||||
print "ERROR --includeprocess cannot be combined with --excludeprocess, exit."
|
print "ERROR --includeprocess cannot be combined with --excludeprocess, exit."
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from tools import *
|
from tools import *
|
||||||
|
|
||||||
sys.path.append(WorkspaceDirectory)
|
sys.path.append(WorkspaceDirectory)
|
||||||
from projects import *
|
from projects import *
|
||||||
|
|
||||||
# Log error
|
# Log error
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Run the export processes")
|
printLog(log, "--- Run the export processes")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
# For each project
|
# For each project
|
||||||
for projectName in ProjectsToProcess:
|
for projectName in ProjectsToProcess:
|
||||||
if ((args.includeproject == None or projectName in args.includeproject) and (args.excludeproject == None or not projectName in args.excludeproject)):
|
if ((args.includeproject == None or projectName in args.includeproject) and (args.excludeproject == None or not projectName in args.excludeproject)):
|
||||||
printLog(log, "PROJECT " + projectName)
|
printLog(log, "PROJECT " + projectName)
|
||||||
os.putenv("NELBUILDACTIVEPROJECT", os.path.abspath(WorkspaceDirectory + "/" + projectName))
|
os.putenv("NELBUILDACTIVEPROJECT", os.path.abspath(WorkspaceDirectory + "/" + projectName))
|
||||||
os.chdir("processes")
|
os.chdir("processes")
|
||||||
try:
|
try:
|
||||||
if not args.includeprocess == None:
|
if not args.includeprocess == None:
|
||||||
subprocess.call([ "python", "1_export.py", "--includeprocess" ] + args.includeprocess)
|
subprocess.call([ "python", "1_export.py", "--includeprocess" ] + args.includeprocess)
|
||||||
elif not args.excludeprocess == None:
|
elif not args.excludeprocess == None:
|
||||||
subprocess.call([ "python", "1_export.py", "--excludeprocess" ] + args.excludeprocess)
|
subprocess.call([ "python", "1_export.py", "--excludeprocess" ] + args.excludeprocess)
|
||||||
else:
|
else:
|
||||||
subprocess.call([ "python", "1_export.py" ])
|
subprocess.call([ "python", "1_export.py" ])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + projectName + "> " + str(e))
|
printLog(log, "<" + projectName + "> " + str(e))
|
||||||
os.chdir("..")
|
os.chdir("..")
|
||||||
try:
|
try:
|
||||||
projectLog = open("processes/log.log", "r")
|
projectLog = open("processes/log.log", "r")
|
||||||
projectLogData = projectLog.read()
|
projectLogData = projectLog.read()
|
||||||
projectLog.close()
|
projectLog.close()
|
||||||
log.write(projectLogData)
|
log.write(projectLogData)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + projectName + "> " + str(e))
|
printLog(log, "<" + projectName + "> " + str(e))
|
||||||
else:
|
else:
|
||||||
printLog(log, "IGNORE PROJECT " + projectName)
|
printLog(log, "IGNORE PROJECT " + projectName)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("1_export.log"):
|
if os.path.isfile("1_export.log"):
|
||||||
os.remove("1_export.log")
|
os.remove("1_export.log")
|
||||||
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_export.log")
|
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_export.log")
|
||||||
shutil.move("log.log", "1_export.log")
|
shutil.move("log.log", "1_export.log")
|
||||||
|
@ -1,94 +1,94 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Run all build processes
|
# \brief Run all build processes
|
||||||
# \date 2009-02-18 09:22GMT
|
# \date 2009-02-18 09:22GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Run all build processes
|
# Run all build processes
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
||||||
sys.path.append("configuration")
|
sys.path.append("configuration")
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Ryzom Core - Build Gamedata - Build')
|
parser = argparse.ArgumentParser(description='Ryzom Core - Build Gamedata - Build')
|
||||||
# parser.add_argument('--haltonerror', '-eh', action='store_true')
|
# parser.add_argument('--haltonerror', '-eh', action='store_true')
|
||||||
parser.add_argument('--includeproject', '-ipj', nargs='+')
|
parser.add_argument('--includeproject', '-ipj', nargs='+')
|
||||||
parser.add_argument('--excludeproject', '-epj', nargs='+')
|
parser.add_argument('--excludeproject', '-epj', nargs='+')
|
||||||
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
||||||
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if not args.includeproject == None and not args.excludeproject == None:
|
if not args.includeproject == None and not args.excludeproject == None:
|
||||||
print "ERROR --includeproject cannot be combined with --excludeproject, exit."
|
print "ERROR --includeproject cannot be combined with --excludeproject, exit."
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
if not args.includeprocess == None and not args.excludeprocess == None:
|
if not args.includeprocess == None and not args.excludeprocess == None:
|
||||||
print "ERROR --includeprocess cannot be combined with --excludeprocess, exit."
|
print "ERROR --includeprocess cannot be combined with --excludeprocess, exit."
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from tools import *
|
from tools import *
|
||||||
|
|
||||||
sys.path.append(WorkspaceDirectory)
|
sys.path.append(WorkspaceDirectory)
|
||||||
from projects import *
|
from projects import *
|
||||||
|
|
||||||
# Log error
|
# Log error
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Run the build processes")
|
printLog(log, "--- Run the build processes")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
# For each project
|
# For each project
|
||||||
for projectName in ProjectsToProcess:
|
for projectName in ProjectsToProcess:
|
||||||
if ((args.includeproject == None or projectName in args.includeproject) and (args.excludeproject == None or not projectName in args.excludeproject)):
|
if ((args.includeproject == None or projectName in args.includeproject) and (args.excludeproject == None or not projectName in args.excludeproject)):
|
||||||
printLog(log, "PROJECT " + projectName)
|
printLog(log, "PROJECT " + projectName)
|
||||||
os.putenv("NELBUILDACTIVEPROJECT", os.path.abspath(WorkspaceDirectory + "/" + projectName))
|
os.putenv("NELBUILDACTIVEPROJECT", os.path.abspath(WorkspaceDirectory + "/" + projectName))
|
||||||
os.chdir("processes")
|
os.chdir("processes")
|
||||||
try:
|
try:
|
||||||
if not args.includeprocess == None:
|
if not args.includeprocess == None:
|
||||||
subprocess.call([ "python", "2_build.py", "--includeprocess" ] + args.includeprocess)
|
subprocess.call([ "python", "2_build.py", "--includeprocess" ] + args.includeprocess)
|
||||||
elif not args.excludeprocess == None:
|
elif not args.excludeprocess == None:
|
||||||
subprocess.call([ "python", "2_build.py", "--excludeprocess" ] + args.excludeprocess)
|
subprocess.call([ "python", "2_build.py", "--excludeprocess" ] + args.excludeprocess)
|
||||||
else:
|
else:
|
||||||
subprocess.call([ "python", "2_build.py" ])
|
subprocess.call([ "python", "2_build.py" ])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + projectName + "> " + str(e))
|
printLog(log, "<" + projectName + "> " + str(e))
|
||||||
os.chdir("..")
|
os.chdir("..")
|
||||||
try:
|
try:
|
||||||
projectLog = open("processes/log.log", "r")
|
projectLog = open("processes/log.log", "r")
|
||||||
projectLogData = projectLog.read()
|
projectLogData = projectLog.read()
|
||||||
projectLog.close()
|
projectLog.close()
|
||||||
log.write(projectLogData)
|
log.write(projectLogData)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + projectName + "> " + str(e))
|
printLog(log, "<" + projectName + "> " + str(e))
|
||||||
else:
|
else:
|
||||||
printLog(log, "IGNORE PROJECT " + projectName)
|
printLog(log, "IGNORE PROJECT " + projectName)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("2_build.log"):
|
if os.path.isfile("2_build.log"):
|
||||||
os.remove("2_build.log")
|
os.remove("2_build.log")
|
||||||
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_build.log")
|
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_build.log")
|
||||||
shutil.move("log.log", "2_build.log")
|
shutil.move("log.log", "2_build.log")
|
||||||
|
@ -1,94 +1,94 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Run all install processes
|
# \brief Run all install processes
|
||||||
# \date 2009-02-18 16:19GMT
|
# \date 2009-02-18 16:19GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Run all install processes
|
# Run all install processes
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
||||||
sys.path.append("configuration")
|
sys.path.append("configuration")
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Ryzom Core - Build Gamedata - Install')
|
parser = argparse.ArgumentParser(description='Ryzom Core - Build Gamedata - Install')
|
||||||
# parser.add_argument('--haltonerror', '-eh', action='store_true')
|
# parser.add_argument('--haltonerror', '-eh', action='store_true')
|
||||||
parser.add_argument('--includeproject', '-ipj', nargs='+')
|
parser.add_argument('--includeproject', '-ipj', nargs='+')
|
||||||
parser.add_argument('--excludeproject', '-epj', nargs='+')
|
parser.add_argument('--excludeproject', '-epj', nargs='+')
|
||||||
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
||||||
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if not args.includeproject == None and not args.excludeproject == None:
|
if not args.includeproject == None and not args.excludeproject == None:
|
||||||
print "ERROR --includeproject cannot be combined with --excludeproject, exit."
|
print "ERROR --includeproject cannot be combined with --excludeproject, exit."
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
if not args.includeprocess == None and not args.excludeprocess == None:
|
if not args.includeprocess == None and not args.excludeprocess == None:
|
||||||
print "ERROR --includeprocess cannot be combined with --excludeprocess, exit."
|
print "ERROR --includeprocess cannot be combined with --excludeprocess, exit."
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from tools import *
|
from tools import *
|
||||||
|
|
||||||
sys.path.append(WorkspaceDirectory)
|
sys.path.append(WorkspaceDirectory)
|
||||||
from projects import *
|
from projects import *
|
||||||
|
|
||||||
# Log error
|
# Log error
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Run the install processes")
|
printLog(log, "--- Run the install processes")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
# For each project
|
# For each project
|
||||||
for projectName in ProjectsToProcess:
|
for projectName in ProjectsToProcess:
|
||||||
if ((args.includeproject == None or projectName in args.includeproject) and (args.excludeproject == None or not projectName in args.excludeproject)):
|
if ((args.includeproject == None or projectName in args.includeproject) and (args.excludeproject == None or not projectName in args.excludeproject)):
|
||||||
printLog(log, "PROJECT " + projectName)
|
printLog(log, "PROJECT " + projectName)
|
||||||
os.putenv("NELBUILDACTIVEPROJECT", os.path.abspath(WorkspaceDirectory + "/" + projectName))
|
os.putenv("NELBUILDACTIVEPROJECT", os.path.abspath(WorkspaceDirectory + "/" + projectName))
|
||||||
os.chdir("processes")
|
os.chdir("processes")
|
||||||
try:
|
try:
|
||||||
if not args.includeprocess == None:
|
if not args.includeprocess == None:
|
||||||
subprocess.call([ "python", "3_install.py", "--includeprocess" ] + args.includeprocess)
|
subprocess.call([ "python", "3_install.py", "--includeprocess" ] + args.includeprocess)
|
||||||
elif not args.excludeprocess == None:
|
elif not args.excludeprocess == None:
|
||||||
subprocess.call([ "python", "3_install.py", "--excludeprocess" ] + args.excludeprocess)
|
subprocess.call([ "python", "3_install.py", "--excludeprocess" ] + args.excludeprocess)
|
||||||
else:
|
else:
|
||||||
subprocess.call([ "python", "3_install.py" ])
|
subprocess.call([ "python", "3_install.py" ])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + projectName + "> " + str(e))
|
printLog(log, "<" + projectName + "> " + str(e))
|
||||||
os.chdir("..")
|
os.chdir("..")
|
||||||
try:
|
try:
|
||||||
projectLog = open("processes/log.log", "r")
|
projectLog = open("processes/log.log", "r")
|
||||||
projectLogData = projectLog.read()
|
projectLogData = projectLog.read()
|
||||||
projectLog.close()
|
projectLog.close()
|
||||||
log.write(projectLogData)
|
log.write(projectLogData)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + projectName + "> " + str(e))
|
printLog(log, "<" + projectName + "> " + str(e))
|
||||||
else:
|
else:
|
||||||
printLog(log, "IGNORE PROJECT " + projectName)
|
printLog(log, "IGNORE PROJECT " + projectName)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("3_install.log"):
|
if os.path.isfile("3_install.log"):
|
||||||
os.remove("3_install.log")
|
os.remove("3_install.log")
|
||||||
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_install.log")
|
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_install.log")
|
||||||
shutil.move("log.log", "3_install.log")
|
shutil.move("log.log", "3_install.log")
|
||||||
|
@ -1,181 +1,181 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 9_upload.py
|
# \file 9_upload.py
|
||||||
# \brief Upload data to servers
|
# \brief Upload data to servers
|
||||||
# \date 2009-02-18 16:19GMT
|
# \date 2009-02-18 16:19GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Game data build pipeline.
|
# Game data build pipeline.
|
||||||
# Upload data to servers
|
# Upload data to servers
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2011 Kaetemi
|
# Copyright (C) 2011 Kaetemi
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("configuration")
|
sys.path.append("configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from tools import *
|
from tools import *
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from upload import *
|
from upload import *
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Not documenting this. Because we can.
|
# Not documenting this. Because we can.
|
||||||
printLog(log, "ERROR Upload not configured, bye.")
|
printLog(log, "ERROR Upload not configured, bye.")
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
sys.path.append(WorkspaceDirectory)
|
sys.path.append(WorkspaceDirectory)
|
||||||
from projects import *
|
from projects import *
|
||||||
|
|
||||||
# Log error
|
# Log error
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Upload data to servers")
|
printLog(log, "--- Upload data to servers")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
# Not documenting this. Because we can.
|
# Not documenting this. Because we can.
|
||||||
Psftp = findFileMultiDir(log, ToolDirectories + WindowsExeDllCfgDirectories, UploadPsftpTool)
|
Psftp = findFileMultiDir(log, ToolDirectories + WindowsExeDllCfgDirectories, UploadPsftpTool)
|
||||||
printLog(log, "PSFTP " + Psftp)
|
printLog(log, "PSFTP " + Psftp)
|
||||||
|
|
||||||
def downloadVersionTag(server, user, sshkey, dir):
|
def downloadVersionTag(server, user, sshkey, dir):
|
||||||
if os.path.isfile("upload.tag"):
|
if os.path.isfile("upload.tag"):
|
||||||
os.remove("upload.tag")
|
os.remove("upload.tag")
|
||||||
if os.path.isfile("upload.batch"):
|
if os.path.isfile("upload.batch"):
|
||||||
os.remove("upload.batch")
|
os.remove("upload.batch")
|
||||||
ub = open("upload.batch", "w")
|
ub = open("upload.batch", "w")
|
||||||
ub.write("cd " + dir + "\n")
|
ub.write("cd " + dir + "\n")
|
||||||
ub.write("get upload.tag upload.tag\n")
|
ub.write("get upload.tag upload.tag\n")
|
||||||
ub.write("quit\n")
|
ub.write("quit\n")
|
||||||
ub.close()
|
ub.close()
|
||||||
subprocess.call([ Psftp, "-b", "upload.batch", "-i", sshkey, user + "@" + server ])
|
subprocess.call([ Psftp, "-b", "upload.batch", "-i", sshkey, user + "@" + server ])
|
||||||
os.remove("upload.batch")
|
os.remove("upload.batch")
|
||||||
if os.path.isfile("upload.tag"):
|
if os.path.isfile("upload.tag"):
|
||||||
ft = open("upload.tag")
|
ft = open("upload.tag")
|
||||||
result = float(ft.read()) # float, really
|
result = float(ft.read()) # float, really
|
||||||
ft.close()
|
ft.close()
|
||||||
os.remove("upload.tag")
|
os.remove("upload.tag")
|
||||||
printLog(log, "INFO Upload tag is " + str(result))
|
printLog(log, "INFO Upload tag is " + str(result))
|
||||||
return result
|
return result
|
||||||
else:
|
else:
|
||||||
printLog(log, "WARNING Upload tag not found, uploading everything")
|
printLog(log, "WARNING Upload tag not found, uploading everything")
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def isDirectoryNeeded(ft, dir):
|
def isDirectoryNeeded(ft, dir):
|
||||||
files = os.listdir(dir)
|
files = os.listdir(dir)
|
||||||
for fileName in files:
|
for fileName in files:
|
||||||
if isLegalFileName(fileName):
|
if isLegalFileName(fileName):
|
||||||
fileFull = dir + "/" + fileName
|
fileFull = dir + "/" + fileName
|
||||||
if os.path.isfile(fileFull):
|
if os.path.isfile(fileFull):
|
||||||
nftf = os.stat(fileFull).st_mtime
|
nftf = os.stat(fileFull).st_mtime
|
||||||
if nftf > ft:
|
if nftf > ft:
|
||||||
return True
|
return True
|
||||||
elif os.path.isdir(fileFull):
|
elif os.path.isdir(fileFull):
|
||||||
if isDirectoryNeeded(ft, fileFull):
|
if isDirectoryNeeded(ft, fileFull):
|
||||||
return True
|
return True
|
||||||
elif not os.path.isdir(fileFull):
|
elif not os.path.isdir(fileFull):
|
||||||
printLog(log, "isDirectoryNeeded: file not dir or file?!" + fileFull)
|
printLog(log, "isDirectoryNeeded: file not dir or file?!" + fileFull)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def listDirectoryUpload(ft, ub, udb, dir):
|
def listDirectoryUpload(ft, ub, udb, dir):
|
||||||
nft = 0
|
nft = 0
|
||||||
files = os.listdir(dir)
|
files = os.listdir(dir)
|
||||||
for fileName in files:
|
for fileName in files:
|
||||||
if isLegalFileName(fileName):
|
if isLegalFileName(fileName):
|
||||||
fileFull = dir + "/" + fileName
|
fileFull = dir + "/" + fileName
|
||||||
if os.path.isfile(fileFull):
|
if os.path.isfile(fileFull):
|
||||||
nftf = os.stat(fileFull).st_mtime
|
nftf = os.stat(fileFull).st_mtime
|
||||||
if nftf > ft:
|
if nftf > ft:
|
||||||
ub.write("put " + fileFull + " " + fileName + "\n")
|
ub.write("put " + fileFull + " " + fileName + "\n")
|
||||||
if nftf > nft:
|
if nftf > nft:
|
||||||
nft = nftf
|
nft = nftf
|
||||||
elif os.path.isdir(fileFull):
|
elif os.path.isdir(fileFull):
|
||||||
if isDirectoryNeeded(ft, fileFull):
|
if isDirectoryNeeded(ft, fileFull):
|
||||||
udb.write("mkdir " + fileName + "\n")
|
udb.write("mkdir " + fileName + "\n")
|
||||||
ub.write("cd " + fileName + "\n")
|
ub.write("cd " + fileName + "\n")
|
||||||
udb.write("cd " + fileName + "\n")
|
udb.write("cd " + fileName + "\n")
|
||||||
nft2 = listDirectoryUpload(ft, ub, udb, fileFull)
|
nft2 = listDirectoryUpload(ft, ub, udb, fileFull)
|
||||||
if (nft2 > nft):
|
if (nft2 > nft):
|
||||||
nft = nft2
|
nft = nft2
|
||||||
ub.write("cd ..\n")
|
ub.write("cd ..\n")
|
||||||
udb.write("cd ..\n")
|
udb.write("cd ..\n")
|
||||||
elif not os.path.isdir(fileFull):
|
elif not os.path.isdir(fileFull):
|
||||||
printLog(log, "listDirectoryUpload: file not dir or file?!" + fileFull)
|
printLog(log, "listDirectoryUpload: file not dir or file?!" + fileFull)
|
||||||
return nft
|
return nft
|
||||||
|
|
||||||
def uploadSftp(server, user, sshkey, dir_to, dir_from, addcmd):
|
def uploadSftp(server, user, sshkey, dir_to, dir_from, addcmd):
|
||||||
ft = downloadVersionTag(server, user, sshkey, dir_to)
|
ft = downloadVersionTag(server, user, sshkey, dir_to)
|
||||||
if isDirectoryNeeded(ft, dir_from):
|
if isDirectoryNeeded(ft, dir_from):
|
||||||
if os.path.isfile("upload_dir.batch"):
|
if os.path.isfile("upload_dir.batch"):
|
||||||
os.remove("upload_dir.batch")
|
os.remove("upload_dir.batch")
|
||||||
if os.path.isfile("upload.batch"):
|
if os.path.isfile("upload.batch"):
|
||||||
os.remove("upload.batch")
|
os.remove("upload.batch")
|
||||||
udb = open("upload_dir.batch", "w")
|
udb = open("upload_dir.batch", "w")
|
||||||
udb.write("cd " + dir_to + "\n")
|
udb.write("cd " + dir_to + "\n")
|
||||||
ub = open("upload.batch", "w")
|
ub = open("upload.batch", "w")
|
||||||
ub.write("cd " + dir_to + "\n")
|
ub.write("cd " + dir_to + "\n")
|
||||||
for ac in addcmd:
|
for ac in addcmd:
|
||||||
ub.write(ac + "\n")
|
ub.write(ac + "\n")
|
||||||
ftn = listDirectoryUpload(ft, ub, udb, dir_from)
|
ftn = listDirectoryUpload(ft, ub, udb, dir_from)
|
||||||
if (ft > ftn):
|
if (ft > ftn):
|
||||||
ftn = ft
|
ftn = ft
|
||||||
nft = open("upload.tag", "w")
|
nft = open("upload.tag", "w")
|
||||||
nft.write(str(ftn))
|
nft.write(str(ftn))
|
||||||
nft.close()
|
nft.close()
|
||||||
ub.write("put upload.tag upload.tag\n")
|
ub.write("put upload.tag upload.tag\n")
|
||||||
ub.write("quit\n")
|
ub.write("quit\n")
|
||||||
ub.close()
|
ub.close()
|
||||||
udb.write("quit\n")
|
udb.write("quit\n")
|
||||||
udb.close()
|
udb.close()
|
||||||
subprocess.call([ Psftp, "-be", "-b", "upload_dir.batch", "-i", sshkey, user + "@" + server ])
|
subprocess.call([ Psftp, "-be", "-b", "upload_dir.batch", "-i", sshkey, user + "@" + server ])
|
||||||
subprocess.call([ Psftp, "-b", "upload.batch", "-i", sshkey, user + "@" + server ])
|
subprocess.call([ Psftp, "-b", "upload.batch", "-i", sshkey, user + "@" + server ])
|
||||||
os.remove("upload_dir.batch")
|
os.remove("upload_dir.batch")
|
||||||
os.remove("upload.batch")
|
os.remove("upload.batch")
|
||||||
os.remove("upload.tag")
|
os.remove("upload.tag")
|
||||||
else:
|
else:
|
||||||
printLog(log, "SKIP " + dir_to)
|
printLog(log, "SKIP " + dir_to)
|
||||||
|
|
||||||
printLog(log, ">>> Upload patch <<<")
|
printLog(log, ">>> Upload patch <<<")
|
||||||
for target in UploadPatch:
|
for target in UploadPatch:
|
||||||
uploadSftp(target[0], target[1], target[2], target[3], ClientPatchDirectory + "/patch", [ ])
|
uploadSftp(target[0], target[1], target[2], target[3], ClientPatchDirectory + "/patch", [ ])
|
||||||
|
|
||||||
printLog(log, ">>> Upload data_shard <<<")
|
printLog(log, ">>> Upload data_shard <<<")
|
||||||
for target in UploadShard:
|
for target in UploadShard:
|
||||||
uploadSftp(target[0], target[1], target[2], target[3], DataShardDirectory, [ "rm *.packed_sheets", "rm primitive_cache/*.binprim" ])
|
uploadSftp(target[0], target[1], target[2], target[3], DataShardDirectory, [ "rm *.packed_sheets", "rm primitive_cache/*.binprim" ])
|
||||||
|
|
||||||
printLog(log, ">>> Upload data_common <<<")
|
printLog(log, ">>> Upload data_common <<<")
|
||||||
for target in UploadCommon:
|
for target in UploadCommon:
|
||||||
uploadSftp(target[0], target[1], target[2], target[3], DataCommonDirectory, [ ])
|
uploadSftp(target[0], target[1], target[2], target[3], DataCommonDirectory, [ ])
|
||||||
|
|
||||||
printLog(log, ">>> Upload data_leveldesign/leveldesign <<<")
|
printLog(log, ">>> Upload data_leveldesign/leveldesign <<<")
|
||||||
for target in UploadLeveldesign:
|
for target in UploadLeveldesign:
|
||||||
uploadSftp(target[0], target[1], target[2], target[3], LeveldesignDirectory, [ ])
|
uploadSftp(target[0], target[1], target[2], target[3], LeveldesignDirectory, [ ])
|
||||||
|
|
||||||
printLog(log, ">>> Upload data_leveldesign/primitives <<<")
|
printLog(log, ">>> Upload data_leveldesign/primitives <<<")
|
||||||
for target in UploadPrimitives:
|
for target in UploadPrimitives:
|
||||||
uploadSftp(target[0], target[1], target[2], target[3], PrimitivesDirectory, [ ])
|
uploadSftp(target[0], target[1], target[2], target[3], PrimitivesDirectory, [ ])
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("9_upload.log"):
|
if os.path.isfile("9_upload.log"):
|
||||||
os.remove("9_upload.log")
|
os.remove("9_upload.log")
|
||||||
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_upload.log")
|
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_upload.log")
|
||||||
shutil.move("log.log", "9_upload.log")
|
shutil.move("log.log", "9_upload.log")
|
||||||
|
@ -1,74 +1,74 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file a1_worldedit_data.py
|
# \file a1_worldedit_data.py
|
||||||
# \brief Install worldedit data
|
# \brief Install worldedit data
|
||||||
# \date 2014-09-10 14:01GMT
|
# \date 2014-09-10 14:01GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install worldedit data
|
# Install worldedit data
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2014 by authors
|
# Copyright (C) 2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("configuration")
|
sys.path.append("configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from tools import *
|
from tools import *
|
||||||
|
|
||||||
sys.path.append(WorkspaceDirectory)
|
sys.path.append(WorkspaceDirectory)
|
||||||
from projects import *
|
from projects import *
|
||||||
|
|
||||||
# Log error
|
# Log error
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install worldedit data")
|
printLog(log, "--- Install worldedit data")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
for ecosystem in WorldEditEcosystems:
|
for ecosystem in WorldEditEcosystems:
|
||||||
ecosystemName = ecosystem[0]
|
ecosystemName = ecosystem[0]
|
||||||
srcZoneLigos = ExportBuildDirectory + "/ecosystems/" + ecosystemName + "/ligo_es/zoneligos/"
|
srcZoneLigos = ExportBuildDirectory + "/ecosystems/" + ecosystemName + "/ligo_es/zoneligos/"
|
||||||
dstZoneLigos = WorldEditInstallDirectory + "/" + ecosystemName + "/zoneligos/"
|
dstZoneLigos = WorldEditInstallDirectory + "/" + ecosystemName + "/zoneligos/"
|
||||||
mkPath(log, srcZoneLigos)
|
mkPath(log, srcZoneLigos)
|
||||||
mkPath(log, dstZoneLigos)
|
mkPath(log, dstZoneLigos)
|
||||||
copyFilesNoTreeIfNeeded(log, srcZoneLigos, dstZoneLigos)
|
copyFilesNoTreeIfNeeded(log, srcZoneLigos, dstZoneLigos)
|
||||||
srcZoneBitmaps = DatabaseDirectory + "/landscape/ligo/" + ecosystemName + "/zonebitmaps/"
|
srcZoneBitmaps = DatabaseDirectory + "/landscape/ligo/" + ecosystemName + "/zonebitmaps/"
|
||||||
dstZoneBitmaps = WorldEditInstallDirectory + "/" + ecosystemName + "/zonebitmaps/"
|
dstZoneBitmaps = WorldEditInstallDirectory + "/" + ecosystemName + "/zonebitmaps/"
|
||||||
mkPath(log, srcZoneBitmaps)
|
mkPath(log, srcZoneBitmaps)
|
||||||
mkPath(log, dstZoneBitmaps)
|
mkPath(log, dstZoneBitmaps)
|
||||||
copyFilesExtNoTreeIfNeeded(log, srcZoneBitmaps, dstZoneBitmaps, ".tga")
|
copyFilesExtNoTreeIfNeeded(log, srcZoneBitmaps, dstZoneBitmaps, ".tga")
|
||||||
copyFilesExtNoTreeIfNeeded(log, srcZoneBitmaps, dstZoneBitmaps, ".png")
|
copyFilesExtNoTreeIfNeeded(log, srcZoneBitmaps, dstZoneBitmaps, ".png")
|
||||||
dstCollisionMap = WorldEditInstallDirectory + "/" + ecosystemName + "/collisionmap/"
|
dstCollisionMap = WorldEditInstallDirectory + "/" + ecosystemName + "/collisionmap/"
|
||||||
mkPath(log, dstCollisionMap)
|
mkPath(log, dstCollisionMap)
|
||||||
for continentName in ecosystem[1]:
|
for continentName in ecosystem[1]:
|
||||||
srcCollisionMap = ExportBuildDirectory + "/continents/" + continentName + "/ai_wmap/"
|
srcCollisionMap = ExportBuildDirectory + "/continents/" + continentName + "/ai_wmap/"
|
||||||
mkPath(log, srcCollisionMap)
|
mkPath(log, srcCollisionMap)
|
||||||
copyFilesExtNoTreeIfNeeded(log, srcCollisionMap, dstCollisionMap, ".tga")
|
copyFilesExtNoTreeIfNeeded(log, srcCollisionMap, dstCollisionMap, ".tga")
|
||||||
copyFilesExtNoTreeIfNeeded(log, srcCollisionMap, dstCollisionMap, ".png")
|
copyFilesExtNoTreeIfNeeded(log, srcCollisionMap, dstCollisionMap, ".png")
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("a1_worldedit_data.log"):
|
if os.path.isfile("a1_worldedit_data.log"):
|
||||||
os.remove("a1_worldedit_data.log")
|
os.remove("a1_worldedit_data.log")
|
||||||
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_worldedit_data.log")
|
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_worldedit_data.log")
|
||||||
shutil.move("log.log", "a1_worldedit_data.log")
|
shutil.move("log.log", "a1_worldedit_data.log")
|
||||||
|
@ -1,93 +1,93 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file b2_shard_data.py
|
# \file b2_shard_data.py
|
||||||
# \brief Install shard data
|
# \brief Install shard data
|
||||||
# \date 2009-02-18 16:19GMT
|
# \date 2009-02-18 16:19GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install shard data
|
# Install shard data
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("configuration")
|
sys.path.append("configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from tools import *
|
from tools import *
|
||||||
|
|
||||||
sys.path.append(WorkspaceDirectory)
|
sys.path.append(WorkspaceDirectory)
|
||||||
from projects import *
|
from projects import *
|
||||||
|
|
||||||
# Log error
|
# Log error
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install shard data")
|
printLog(log, "--- Install shard data")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
for dir in InstallShardDataDirectories:
|
for dir in InstallShardDataDirectories:
|
||||||
printLog(log, "SHARD PACKAGE " + dir)
|
printLog(log, "SHARD PACKAGE " + dir)
|
||||||
mkPath(log, ShardInstallDirectory + "/" + dir)
|
mkPath(log, ShardInstallDirectory + "/" + dir)
|
||||||
printLog(log, "FROM " + dir)
|
printLog(log, "FROM " + dir)
|
||||||
mkPath(log, InstallDirectory + "/" + dir)
|
mkPath(log, InstallDirectory + "/" + dir)
|
||||||
copyFilesNoTreeIfNeeded(log, InstallDirectory + "/" + dir, ShardInstallDirectory + "/" + dir)
|
copyFilesNoTreeIfNeeded(log, InstallDirectory + "/" + dir, ShardInstallDirectory + "/" + dir)
|
||||||
for package in InstallShardDataFiles:
|
for package in InstallShardDataFiles:
|
||||||
dstDir = package[0]
|
dstDir = package[0]
|
||||||
mkPath(log, ShardInstallDirectory + "/" + dstDir)
|
mkPath(log, ShardInstallDirectory + "/" + dstDir)
|
||||||
printLog(log, "SHARD PACKAGE " + dstDir)
|
printLog(log, "SHARD PACKAGE " + dstDir)
|
||||||
copyFileListNoTreeIfNeeded(log, InstallDirectory, ShardInstallDirectory + "/" + dstDir, package[1])
|
copyFileListNoTreeIfNeeded(log, InstallDirectory, ShardInstallDirectory + "/" + dstDir, package[1])
|
||||||
for multiDir in InstallShardDataMultiDirectories:
|
for multiDir in InstallShardDataMultiDirectories:
|
||||||
dstDir = multiDir[0]
|
dstDir = multiDir[0]
|
||||||
mkPath(log, ShardInstallDirectory + "/" + dstDir)
|
mkPath(log, ShardInstallDirectory + "/" + dstDir)
|
||||||
printLog(log, "SHARD PACKAGE " + dstDir)
|
printLog(log, "SHARD PACKAGE " + dstDir)
|
||||||
for srcDir in multiDir[1]:
|
for srcDir in multiDir[1]:
|
||||||
printLog(log, "FROM " + srcDir)
|
printLog(log, "FROM " + srcDir)
|
||||||
mkPath(log, InstallDirectory + "/" + srcDir)
|
mkPath(log, InstallDirectory + "/" + srcDir)
|
||||||
mkPath(log, ShardInstallDirectory + "/" + dstDir + "/" + srcDir)
|
mkPath(log, ShardInstallDirectory + "/" + dstDir + "/" + srcDir)
|
||||||
copyFilesNoTreeIfNeeded(log, InstallDirectory + "/" + srcDir, ShardInstallDirectory + "/" + dstDir + "/" + srcDir)
|
copyFilesNoTreeIfNeeded(log, InstallDirectory + "/" + srcDir, ShardInstallDirectory + "/" + dstDir + "/" + srcDir)
|
||||||
for multiDir in InstallShardDataPrimitivesDirectories:
|
for multiDir in InstallShardDataPrimitivesDirectories:
|
||||||
dstDir = multiDir[0]
|
dstDir = multiDir[0]
|
||||||
mkPath(log, ShardInstallDirectory + "/" + dstDir)
|
mkPath(log, ShardInstallDirectory + "/" + dstDir)
|
||||||
printLog(log, "SHARD PACKAGE " + dstDir)
|
printLog(log, "SHARD PACKAGE " + dstDir)
|
||||||
for srcDir in multiDir[1]:
|
for srcDir in multiDir[1]:
|
||||||
printLog(log, "FROM PRIMITIVES " + srcDir)
|
printLog(log, "FROM PRIMITIVES " + srcDir)
|
||||||
mkPath(log, PrimitivesDirectory + "/" + srcDir)
|
mkPath(log, PrimitivesDirectory + "/" + srcDir)
|
||||||
mkPath(log, ShardInstallDirectory + "/" + dstDir + "/" + srcDir)
|
mkPath(log, ShardInstallDirectory + "/" + dstDir + "/" + srcDir)
|
||||||
copyFilesNoTreeIfNeeded(log, PrimitivesDirectory + "/" + srcDir, ShardInstallDirectory + "/" + dstDir + "/" + srcDir)
|
copyFilesNoTreeIfNeeded(log, PrimitivesDirectory + "/" + srcDir, ShardInstallDirectory + "/" + dstDir + "/" + srcDir)
|
||||||
for execDir in InstallShardDataExecutables:
|
for execDir in InstallShardDataExecutables:
|
||||||
dstDir = execDir[0]
|
dstDir = execDir[0]
|
||||||
mkPath(log, LinuxServiceExecutableDirectory)
|
mkPath(log, LinuxServiceExecutableDirectory)
|
||||||
mkPath(log, PatchmanCfgDefaultDirectory)
|
mkPath(log, PatchmanCfgDefaultDirectory)
|
||||||
mkPath(log, InstallDirectory)
|
mkPath(log, InstallDirectory)
|
||||||
mkPath(log, ShardInstallDirectory + "/" + dstDir)
|
mkPath(log, ShardInstallDirectory + "/" + dstDir)
|
||||||
printLog(log, "SHARD PACKAGE " + dstDir)
|
printLog(log, "SHARD PACKAGE " + dstDir)
|
||||||
copyFileIfNeeded(log, LinuxServiceExecutableDirectory + "/" + execDir[1][1], ShardInstallDirectory + "/" + dstDir + "/" + execDir[1][0])
|
copyFileIfNeeded(log, LinuxServiceExecutableDirectory + "/" + execDir[1][1], ShardInstallDirectory + "/" + dstDir + "/" + execDir[1][0])
|
||||||
copyFileListNoTreeIfNeeded(log, PatchmanCfgDefaultDirectory, ShardInstallDirectory + "/" + dstDir, execDir[2])
|
copyFileListNoTreeIfNeeded(log, PatchmanCfgDefaultDirectory, ShardInstallDirectory + "/" + dstDir, execDir[2])
|
||||||
copyFileListNoTreeIfNeeded(log, InstallDirectory, ShardInstallDirectory + "/" + dstDir, execDir[3])
|
copyFileListNoTreeIfNeeded(log, InstallDirectory, ShardInstallDirectory + "/" + dstDir, execDir[3])
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("b2_shard_data.log"):
|
if os.path.isfile("b2_shard_data.log"):
|
||||||
os.remove("b2_shard_data.log")
|
os.remove("b2_shard_data.log")
|
||||||
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_shard_data.log")
|
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_shard_data.log")
|
||||||
shutil.move("log.log", "b2_shard_data.log")
|
shutil.move("log.log", "b2_shard_data.log")
|
||||||
|
@ -1,86 +1,86 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file d2_client_install.py
|
# \file d2_client_install.py
|
||||||
# \brief Install to client install
|
# \brief Install to client install
|
||||||
# \date 2009-02-18 16:19GMT
|
# \date 2009-02-18 16:19GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install to client install
|
# Install to client install
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("configuration")
|
sys.path.append("configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from tools import *
|
from tools import *
|
||||||
|
|
||||||
sys.path.append(WorkspaceDirectory)
|
sys.path.append(WorkspaceDirectory)
|
||||||
from projects import *
|
from projects import *
|
||||||
|
|
||||||
# Log error
|
# Log error
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install to client install")
|
printLog(log, "--- Install to client install")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
for category in InstallClientData:
|
for category in InstallClientData:
|
||||||
printLog(log, "CATEGORY " + category["Name"])
|
printLog(log, "CATEGORY " + category["Name"])
|
||||||
packExt = ".bnp"
|
packExt = ".bnp"
|
||||||
if (category["StreamedPackages"]):
|
if (category["StreamedPackages"]):
|
||||||
packExt = ".snp"
|
packExt = ".snp"
|
||||||
if (category["UnpackTo"] != None):
|
if (category["UnpackTo"] != None):
|
||||||
targetPath = ClientInstallDirectory
|
targetPath = ClientInstallDirectory
|
||||||
if (category["UnpackTo"] != ""):
|
if (category["UnpackTo"] != ""):
|
||||||
targetPath += "/" + category["UnpackTo"]
|
targetPath += "/" + category["UnpackTo"]
|
||||||
mkPath(log, targetPath)
|
mkPath(log, targetPath)
|
||||||
for package in category["Packages"]:
|
for package in category["Packages"]:
|
||||||
printLog(log, "PACKAGE " + package[0])
|
printLog(log, "PACKAGE " + package[0])
|
||||||
mkPath(log, InstallDirectory + "/" + package[0])
|
mkPath(log, InstallDirectory + "/" + package[0])
|
||||||
copyFilesNoTreeIfNeeded(log, InstallDirectory + "/" + package[0], targetPath)
|
copyFilesNoTreeIfNeeded(log, InstallDirectory + "/" + package[0], targetPath)
|
||||||
else:
|
else:
|
||||||
sourcePath = ClientPatchDirectory + "/bnp"
|
sourcePath = ClientPatchDirectory + "/bnp"
|
||||||
targetPath = ClientInstallDirectory + "/data"
|
targetPath = ClientInstallDirectory + "/data"
|
||||||
mkPath(log, targetPath)
|
mkPath(log, targetPath)
|
||||||
for package in category["Packages"]:
|
for package in category["Packages"]:
|
||||||
printLog(log, "PACKAGE " + package[0])
|
printLog(log, "PACKAGE " + package[0])
|
||||||
sourceBnp = sourcePath + "/" + package[0] + packExt
|
sourceBnp = sourcePath + "/" + package[0] + packExt
|
||||||
targetBnp = targetPath + "/" + package[0] + packExt
|
targetBnp = targetPath + "/" + package[0] + packExt
|
||||||
if (len(package[1]) > 0):
|
if (len(package[1]) > 0):
|
||||||
sourceBnp = sourcePath + "/" + package[1][0]
|
sourceBnp = sourcePath + "/" + package[1][0]
|
||||||
targetBnp = targetPath + "/" + package[1][0]
|
targetBnp = targetPath + "/" + package[1][0]
|
||||||
printLog(log, "TARGET " + package[1][0])
|
printLog(log, "TARGET " + package[1][0])
|
||||||
copyFileIfNeeded(log, sourceBnp, targetBnp)
|
copyFileIfNeeded(log, sourceBnp, targetBnp)
|
||||||
for ref in category["Refs"]:
|
for ref in category["Refs"]:
|
||||||
printLog(log, "REFERENCE " + ref)
|
printLog(log, "REFERENCE " + ref)
|
||||||
sourceRef = sourcePath + "/" + ref + "_.ref"
|
sourceRef = sourcePath + "/" + ref + "_.ref"
|
||||||
targetRef = targetPath + "/" + ref + "_.ref"
|
targetRef = targetPath + "/" + ref + "_.ref"
|
||||||
copyFileIfNeeded(log, sourceRef, targetRef)
|
copyFileIfNeeded(log, sourceRef, targetRef)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("d2_client_install.log"):
|
if os.path.isfile("d2_client_install.log"):
|
||||||
os.remove("d2_client_install.log")
|
os.remove("d2_client_install.log")
|
||||||
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_client_install.log")
|
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_client_install.log")
|
||||||
shutil.move("log.log", "d2_client_install.log")
|
shutil.move("log.log", "d2_client_install.log")
|
||||||
|
@ -1,32 +1,32 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file export_build_install.py
|
# \file export_build_install.py
|
||||||
# \brief Run all processes
|
# \brief Run all processes
|
||||||
# \date 2009-02-18 15:28GMT
|
# \date 2009-02-18 15:28GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Run all processes
|
# Run all processes
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http:#dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http:#dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import shutil, subprocess
|
import shutil, subprocess
|
||||||
|
|
||||||
subprocess.call([ "python", "1_export.py" ])
|
subprocess.call([ "python", "1_export.py" ])
|
||||||
subprocess.call([ "python", "2_build.py" ])
|
subprocess.call([ "python", "2_build.py" ])
|
||||||
subprocess.call([ "python", "3_install.py" ])
|
subprocess.call([ "python", "3_install.py" ])
|
||||||
|
|
||||||
|
@ -1,220 +1,220 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# #################################################################
|
# #################################################################
|
||||||
# ## %PreGenWarning%
|
# ## %PreGenWarning%
|
||||||
# #################################################################
|
# #################################################################
|
||||||
#
|
#
|
||||||
# \file directories.py
|
# \file directories.py
|
||||||
# \brief Directories configuration
|
# \brief Directories configuration
|
||||||
# \date %PreGenDateTimeStamp%
|
# \date %PreGenDateTimeStamp%
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# \date 2001-2005
|
# \date 2001-2005
|
||||||
# \author Nevrax
|
# \author Nevrax
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Directories configuration for '%PreGenEcosystemName%' ecosystem.
|
# Directories configuration for '%PreGenEcosystemName%' ecosystem.
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
# *** ECOSYSTEM AND CONTINENT NAMES ***
|
# *** ECOSYSTEM AND CONTINENT NAMES ***
|
||||||
|
|
||||||
EcosystemName = "%PreGenEcosystemName%"
|
EcosystemName = "%PreGenEcosystemName%"
|
||||||
EcosystemPath = "ecosystems/" + EcosystemName
|
EcosystemPath = "ecosystems/" + EcosystemName
|
||||||
CommonName = EcosystemName
|
CommonName = EcosystemName
|
||||||
CommonPath = EcosystemPath
|
CommonPath = EcosystemPath
|
||||||
|
|
||||||
DatabaseRootName = "%PreGenDatabaseRootName%"
|
DatabaseRootName = "%PreGenDatabaseRootName%"
|
||||||
DatabaseRootPath = "stuff/" + DatabaseRootName
|
DatabaseRootPath = "stuff/" + DatabaseRootName
|
||||||
|
|
||||||
|
|
||||||
# *** SOURCE DIRECTORIES IN THE DATABASE ***
|
# *** SOURCE DIRECTORIES IN THE DATABASE ***
|
||||||
|
|
||||||
# Shape directories
|
# Shape directories
|
||||||
ShapeSourceDirectories = [ ]
|
ShapeSourceDirectories = [ ]
|
||||||
ShapeSourceDirectories += [ DatabaseRootPath + "/decors/vegetations" ]
|
ShapeSourceDirectories += [ DatabaseRootPath + "/decors/vegetations" ]
|
||||||
ShapeSourceDirectories += [ "landscape/ligo/" + EcosystemName + "/max" ]
|
ShapeSourceDirectories += [ "landscape/ligo/" + EcosystemName + "/max" ]
|
||||||
|
|
||||||
# Maps directories
|
# Maps directories
|
||||||
MapSourceDirectories = [ ]
|
MapSourceDirectories = [ ]
|
||||||
MapSourceDirectories += [ DatabaseRootPath + "/decors/_textures" ]
|
MapSourceDirectories += [ DatabaseRootPath + "/decors/_textures" ]
|
||||||
%PreGenMapSubdirectories%MapSourceDirectories += [ "landscape/microveget/" + EcosystemName + "" ]
|
%PreGenMapSubdirectories%MapSourceDirectories += [ "landscape/microveget/" + EcosystemName + "" ]
|
||||||
MapSourceDirectories += [ "landscape/water/meshes/" + EcosystemName + "" ]
|
MapSourceDirectories += [ "landscape/water/meshes/" + EcosystemName + "" ]
|
||||||
|
|
||||||
MapUncompressedSourceDirectories = [ ]
|
MapUncompressedSourceDirectories = [ ]
|
||||||
|
|
||||||
# Tiles directories
|
# Tiles directories
|
||||||
TilesSourceDirectories = [ ]
|
TilesSourceDirectories = [ ]
|
||||||
%PreGenTileSourceDirectories%
|
%PreGenTileSourceDirectories%
|
||||||
# Tiles root directory
|
# Tiles root directory
|
||||||
TileRootSourceDirectory = "landscape/_texture_tiles/" + EcosystemName
|
TileRootSourceDirectory = "landscape/_texture_tiles/" + EcosystemName
|
||||||
|
|
||||||
# Displace directory
|
# Displace directory
|
||||||
DisplaceSourceDirectory = "landscape/_texture_tiles/" + EcosystemName + "/displace"
|
DisplaceSourceDirectory = "landscape/_texture_tiles/" + EcosystemName + "/displace"
|
||||||
|
|
||||||
# Do not use, needs to be removed and fixed in processes
|
# Do not use, needs to be removed and fixed in processes
|
||||||
DisplaceSourceDirectories = [ ]
|
DisplaceSourceDirectories = [ ]
|
||||||
DisplaceSourceDirectories += [ DisplaceSourceDirectory ]
|
DisplaceSourceDirectories += [ DisplaceSourceDirectory ]
|
||||||
|
|
||||||
# Bank directory
|
# Bank directory
|
||||||
BankSourceDirectory = "landscape/_texture_tiles/" + EcosystemName
|
BankSourceDirectory = "landscape/_texture_tiles/" + EcosystemName
|
||||||
|
|
||||||
# Vegetable set directories
|
# Vegetable set directories
|
||||||
VegetSetSourceDirectories = [ ]
|
VegetSetSourceDirectories = [ ]
|
||||||
VegetSetSourceDirectories += [ "landscape/microveget/" + EcosystemName ]
|
VegetSetSourceDirectories += [ "landscape/microveget/" + EcosystemName ]
|
||||||
|
|
||||||
# Veget directories
|
# Veget directories
|
||||||
VegetSourceDirectories = [ ]
|
VegetSourceDirectories = [ ]
|
||||||
VegetSourceDirectories += [ "landscape/microveget/" + EcosystemName ]
|
VegetSourceDirectories += [ "landscape/microveget/" + EcosystemName ]
|
||||||
|
|
||||||
# Ligo directories
|
# Ligo directories
|
||||||
LigoBaseSourceDirectory = "landscape/ligo/" + EcosystemName
|
LigoBaseSourceDirectory = "landscape/ligo/" + EcosystemName
|
||||||
LigoMaxSourceDirectory = LigoBaseSourceDirectory + "/max"
|
LigoMaxSourceDirectory = LigoBaseSourceDirectory + "/max"
|
||||||
|
|
||||||
# Zone directories
|
# Zone directories
|
||||||
ZoneSourceDirectory = [ "landscape/zones/" + EcosystemName ] # For old snowballs style landscape when not using ligo
|
ZoneSourceDirectory = [ "landscape/zones/" + EcosystemName ] # For old snowballs style landscape when not using ligo
|
||||||
|
|
||||||
# Ig landscape directories
|
# Ig landscape directories
|
||||||
IgLandSourceDirectory = "_invalid"
|
IgLandSourceDirectory = "_invalid"
|
||||||
|
|
||||||
# Ig other directories
|
# Ig other directories
|
||||||
IgOtherSourceDirectory = "_invalid"
|
IgOtherSourceDirectory = "_invalid"
|
||||||
|
|
||||||
# PACS primitives directories
|
# PACS primitives directories
|
||||||
PacsPrimSourceDirectories = [ ]
|
PacsPrimSourceDirectories = [ ]
|
||||||
PacsPrimSourceDirectories += [ DatabaseRootPath + "/decors/vegetations" ]
|
PacsPrimSourceDirectories += [ DatabaseRootPath + "/decors/vegetations" ]
|
||||||
|
|
||||||
|
|
||||||
# *** LOOKUP DIRECTORIES WITHIN THE BUILD PIPELINE *** (TODO: use these instead of search_pathes in properties(_base).cfg)
|
# *** LOOKUP DIRECTORIES WITHIN THE BUILD PIPELINE *** (TODO: use these instead of search_pathes in properties(_base).cfg)
|
||||||
|
|
||||||
# Ig lookup directories used by rbank
|
# Ig lookup directories used by rbank
|
||||||
IgLookupDirectories = [ ]
|
IgLookupDirectories = [ ]
|
||||||
|
|
||||||
# Shape lookup directories used by rbank
|
# Shape lookup directories used by rbank
|
||||||
ShapeLookupDirectories = [ ]
|
ShapeLookupDirectories = [ ]
|
||||||
ShapeLookupDirectories += [ EcosystemPath + "/shape_clodtex_build" ]
|
ShapeLookupDirectories += [ EcosystemPath + "/shape_clodtex_build" ]
|
||||||
ShapeLookupDirectories += [ EcosystemPath + "/shape_with_coarse_mesh" ]
|
ShapeLookupDirectories += [ EcosystemPath + "/shape_with_coarse_mesh" ]
|
||||||
|
|
||||||
# Map lookup directories not yet used
|
# Map lookup directories not yet used
|
||||||
MapLookupDirectories = [ ]
|
MapLookupDirectories = [ ]
|
||||||
MapLookupDirectories += [ EcosystemPath + "/map_export" ]
|
MapLookupDirectories += [ EcosystemPath + "/map_export" ]
|
||||||
MapLookupDirectories += [ EcosystemPath + "/map_uncompressed" ]
|
MapLookupDirectories += [ EcosystemPath + "/map_uncompressed" ]
|
||||||
|
|
||||||
|
|
||||||
# *** EXPORT DIRECTORIES FOR THE BUILD PIPELINE ***
|
# *** EXPORT DIRECTORIES FOR THE BUILD PIPELINE ***
|
||||||
|
|
||||||
# Map directories
|
# Map directories
|
||||||
MapExportDirectory = CommonPath + "/map_export"
|
MapExportDirectory = CommonPath + "/map_export"
|
||||||
MapUncompressedExportDirectory = CommonPath + "/map_uncompressed"
|
MapUncompressedExportDirectory = CommonPath + "/map_uncompressed"
|
||||||
|
|
||||||
# Shape directories
|
# Shape directories
|
||||||
ShapeTagExportDirectory = CommonPath + "/shape_tag"
|
ShapeTagExportDirectory = CommonPath + "/shape_tag"
|
||||||
ShapeNotOptimizedExportDirectory = CommonPath + "/shape_not_optimized"
|
ShapeNotOptimizedExportDirectory = CommonPath + "/shape_not_optimized"
|
||||||
ShapeWithCoarseMeshExportDirectory = CommonPath + "/shape_with_coarse_mesh"
|
ShapeWithCoarseMeshExportDirectory = CommonPath + "/shape_with_coarse_mesh"
|
||||||
ShapeLightmapNotOptimizedExportDirectory = CommonPath + "/shape_lightmap_not_optimized"
|
ShapeLightmapNotOptimizedExportDirectory = CommonPath + "/shape_lightmap_not_optimized"
|
||||||
ShapeAnimExportDirectory = CommonPath + "/shape_anim"
|
ShapeAnimExportDirectory = CommonPath + "/shape_anim"
|
||||||
|
|
||||||
# Smallbank directories
|
# Smallbank directories
|
||||||
SmallbankExportDirectory = CommonPath + "/smallbank"
|
SmallbankExportDirectory = CommonPath + "/smallbank"
|
||||||
|
|
||||||
# Tiles directories
|
# Tiles directories
|
||||||
TilesExportDirectory = CommonPath + "/tiles"
|
TilesExportDirectory = CommonPath + "/tiles"
|
||||||
|
|
||||||
# Tiles directories
|
# Tiles directories
|
||||||
DisplaceExportDirectory = CommonPath + "/diplace"
|
DisplaceExportDirectory = CommonPath + "/diplace"
|
||||||
|
|
||||||
# Veget directories
|
# Veget directories
|
||||||
VegetExportDirectory = CommonPath + "/veget"
|
VegetExportDirectory = CommonPath + "/veget"
|
||||||
VegetTagExportDirectory = CommonPath + "/veget_tag"
|
VegetTagExportDirectory = CommonPath + "/veget_tag"
|
||||||
|
|
||||||
# Veget Set directories
|
# Veget Set directories
|
||||||
VegetSetExportDirectory = CommonPath + "/veget_set"
|
VegetSetExportDirectory = CommonPath + "/veget_set"
|
||||||
|
|
||||||
# Ligo directories
|
# Ligo directories
|
||||||
LigoEcosystemExportDirectory = CommonPath + "/ligo_es"
|
LigoEcosystemExportDirectory = CommonPath + "/ligo_es"
|
||||||
LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
|
LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
|
||||||
LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
|
LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
|
||||||
LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
|
LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
|
||||||
LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
|
LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
|
||||||
LigoEcosystemTagExportDirectory = CommonPath + "/ligo_es_tag"
|
LigoEcosystemTagExportDirectory = CommonPath + "/ligo_es_tag"
|
||||||
|
|
||||||
# Zone directories
|
# Zone directories
|
||||||
ZoneExportDirectory = CommonPath + "/zone"
|
ZoneExportDirectory = CommonPath + "/zone"
|
||||||
|
|
||||||
# PACS primitives directories
|
# PACS primitives directories
|
||||||
PacsPrimExportDirectory = CommonPath + "/pacs_prim"
|
PacsPrimExportDirectory = CommonPath + "/pacs_prim"
|
||||||
PacsPrimTagExportDirectory = CommonPath + "/pacs_prim_tag"
|
PacsPrimTagExportDirectory = CommonPath + "/pacs_prim_tag"
|
||||||
|
|
||||||
|
|
||||||
# *** BUILD DIRECTORIES FOR THE BUILD PIPELINE ***
|
# *** BUILD DIRECTORIES FOR THE BUILD PIPELINE ***
|
||||||
|
|
||||||
# Map directories
|
# Map directories
|
||||||
MapBuildDirectory = CommonPath + "/map"
|
MapBuildDirectory = CommonPath + "/map"
|
||||||
MapPanoplyBuildDirectory = CommonPath + "/map_panoply"
|
MapPanoplyBuildDirectory = CommonPath + "/map_panoply"
|
||||||
MapPanoplyHlsInfoBuildDirectory = CommonPath + "/map_panoply_hls_info"
|
MapPanoplyHlsInfoBuildDirectory = CommonPath + "/map_panoply_hls_info"
|
||||||
MapPanoplyHlsBankBuildDirectory = CommonPath + "/map_panoply_hls_bank"
|
MapPanoplyHlsBankBuildDirectory = CommonPath + "/map_panoply_hls_bank"
|
||||||
MapPanoplyCacheBuildDirectory = CommonPath + "/map_panoply_cache"
|
MapPanoplyCacheBuildDirectory = CommonPath + "/map_panoply_cache"
|
||||||
MapTagBuildDirectory = CommonPath + "/map_tag"
|
MapTagBuildDirectory = CommonPath + "/map_tag"
|
||||||
|
|
||||||
# Shape directories
|
# Shape directories
|
||||||
ShapeClodtexBuildDirectory = CommonPath + "/shape_clodtex_build"
|
ShapeClodtexBuildDirectory = CommonPath + "/shape_clodtex_build"
|
||||||
ShapeWithCoarseMeshBuildDirectory = CommonPath + "/shape_with_coarse_mesh_builded"
|
ShapeWithCoarseMeshBuildDirectory = CommonPath + "/shape_with_coarse_mesh_builded"
|
||||||
ShapeLightmapBuildDirectory = CommonPath + "/shape_lightmap"
|
ShapeLightmapBuildDirectory = CommonPath + "/shape_lightmap"
|
||||||
ShapeLightmap16BitsBuildDirectory = CommonPath + "/shape_lightmap_16_bits"
|
ShapeLightmap16BitsBuildDirectory = CommonPath + "/shape_lightmap_16_bits"
|
||||||
|
|
||||||
# Farbank directories
|
# Farbank directories
|
||||||
FarbankBuildDirectory = CommonPath + "/farbank"
|
FarbankBuildDirectory = CommonPath + "/farbank"
|
||||||
|
|
||||||
# Ig directories ************** TODO CONFIRM IN IG BUILD PROCESS ************ FIX RBANK IF NEEDED ***********
|
# Ig directories ************** TODO CONFIRM IN IG BUILD PROCESS ************ FIX RBANK IF NEEDED ***********
|
||||||
IgLandBuildDirectory = "_invalid"
|
IgLandBuildDirectory = "_invalid"
|
||||||
IgOtherBuildDirectory = "_invalid"
|
IgOtherBuildDirectory = "_invalid"
|
||||||
|
|
||||||
# Rbank directories
|
# Rbank directories
|
||||||
RbankOutputBuildDirectory = "_invalid"
|
RbankOutputBuildDirectory = "_invalid"
|
||||||
|
|
||||||
# Ligo directories
|
# Ligo directories
|
||||||
|
|
||||||
|
|
||||||
# *** INSTALL DIRECTORIES IN THE CLIENT DATA ***
|
# *** INSTALL DIRECTORIES IN THE CLIENT DATA ***
|
||||||
|
|
||||||
# Map directory
|
# Map directory
|
||||||
MapInstallDirectory = CommonName + "_maps"
|
MapInstallDirectory = CommonName + "_maps"
|
||||||
BitmapInstallDirectory = MapInstallDirectory
|
BitmapInstallDirectory = MapInstallDirectory
|
||||||
|
|
||||||
# Shape directory
|
# Shape directory
|
||||||
ShapeInstallDirectory = CommonName + "_shapes"
|
ShapeInstallDirectory = CommonName + "_shapes"
|
||||||
|
|
||||||
# Lightmap directory
|
# Lightmap directory
|
||||||
LightmapInstallDirectory = CommonName + "_lightmaps"
|
LightmapInstallDirectory = CommonName + "_lightmaps"
|
||||||
|
|
||||||
# Tile directory
|
# Tile directory
|
||||||
TilesInstallDirectory = CommonName + "_tiles"
|
TilesInstallDirectory = CommonName + "_tiles"
|
||||||
|
|
||||||
# Displace directory
|
# Displace directory
|
||||||
DisplaceInstallDirectory = CommonName + "_displaces"
|
DisplaceInstallDirectory = CommonName + "_displaces"
|
||||||
|
|
||||||
# Bank directory
|
# Bank directory
|
||||||
BankInstallDirectory = CommonName + "_bank"
|
BankInstallDirectory = CommonName + "_bank"
|
||||||
|
|
||||||
# Vegetable set directory
|
# Vegetable set directory
|
||||||
VegetSetInstallDirectory = CommonName + "_vegetable_sets"
|
VegetSetInstallDirectory = CommonName + "_vegetable_sets"
|
||||||
|
|
||||||
# Vegetable shape directory
|
# Vegetable shape directory
|
||||||
VegetInstallDirectory = CommonName + "_vegetables"
|
VegetInstallDirectory = CommonName + "_vegetables"
|
||||||
|
|
||||||
# PACS primitives directories
|
# PACS primitives directories
|
||||||
PacsPrimInstallDirectory = CommonName + "_pacs_prim"
|
PacsPrimInstallDirectory = CommonName + "_pacs_prim"
|
||||||
|
@ -1,122 +1,122 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# #################################################################
|
# #################################################################
|
||||||
# ## %PreGenWarning%
|
# ## %PreGenWarning%
|
||||||
# #################################################################
|
# #################################################################
|
||||||
#
|
#
|
||||||
# \file config.py
|
# \file config.py
|
||||||
# \brief Process configuration
|
# \brief Process configuration
|
||||||
# \date %PreGenDateTimeStamp%
|
# \date %PreGenDateTimeStamp%
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Process configuration for '%PreGenEcosystemName%' ecosystem.
|
# Process configuration for '%PreGenEcosystemName%' ecosystem.
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
# *** PROCESS CONFIGURATION ***
|
# *** PROCESS CONFIGURATION ***
|
||||||
|
|
||||||
# *** PROCESS CONFIG ***
|
# *** PROCESS CONFIG ***
|
||||||
ProcessToComplete = [ ]
|
ProcessToComplete = [ ]
|
||||||
ProcessToComplete += [ "shape" ]
|
ProcessToComplete += [ "shape" ]
|
||||||
ProcessToComplete += [ "map" ]
|
ProcessToComplete += [ "map" ]
|
||||||
ProcessToComplete += [ "smallbank" ]
|
ProcessToComplete += [ "smallbank" ]
|
||||||
ProcessToComplete += [ "farbank" ]
|
ProcessToComplete += [ "farbank" ]
|
||||||
ProcessToComplete += [ "tiles" ]
|
ProcessToComplete += [ "tiles" ]
|
||||||
ProcessToComplete += [ "displace" ]
|
ProcessToComplete += [ "displace" ]
|
||||||
ProcessToComplete += [ "veget" ]
|
ProcessToComplete += [ "veget" ]
|
||||||
ProcessToComplete += [ "vegetset" ]
|
ProcessToComplete += [ "vegetset" ]
|
||||||
ProcessToComplete += [ "ligo" ]
|
ProcessToComplete += [ "ligo" ]
|
||||||
ProcessToComplete += [ "pacs_prim" ]
|
ProcessToComplete += [ "pacs_prim" ]
|
||||||
|
|
||||||
|
|
||||||
# *** ECOSYSTEM AND CONTINENT NAMES ***
|
# *** ECOSYSTEM AND CONTINENT NAMES ***
|
||||||
|
|
||||||
EcosystemName = "%PreGenEcosystemName%"
|
EcosystemName = "%PreGenEcosystemName%"
|
||||||
EcosystemPath = "ecosystems/" + EcosystemName
|
EcosystemPath = "ecosystems/" + EcosystemName
|
||||||
CommonName = EcosystemName
|
CommonName = EcosystemName
|
||||||
CommonPath = EcosystemPath
|
CommonPath = EcosystemPath
|
||||||
|
|
||||||
|
|
||||||
# *** MAP EXPORT OPTIONS ***
|
# *** MAP EXPORT OPTIONS ***
|
||||||
PanoplyFileList = [ ]
|
PanoplyFileList = [ ]
|
||||||
HlsBankFileName = ""
|
HlsBankFileName = ""
|
||||||
|
|
||||||
# *** SHAPE EXPORT OPTIONS ***
|
# *** SHAPE EXPORT OPTIONS ***
|
||||||
|
|
||||||
# Compute lightmaps ?
|
# Compute lightmaps ?
|
||||||
ShapeExportOptExportLighting = "%PreGenShapeExportOptExportLighting%"
|
ShapeExportOptExportLighting = "%PreGenShapeExportOptExportLighting%"
|
||||||
|
|
||||||
# Cast shadow in lightmap ?
|
# Cast shadow in lightmap ?
|
||||||
ShapeExportOptShadow = "%PreGenShapeExportOptShadow%"
|
ShapeExportOptShadow = "%PreGenShapeExportOptShadow%"
|
||||||
|
|
||||||
# Lighting limits. 0 : normal, 1 : soft shadows
|
# Lighting limits. 0 : normal, 1 : soft shadows
|
||||||
ShapeExportOptLightingLimit = %PreGenShapeExportOptLightingLimit%
|
ShapeExportOptLightingLimit = %PreGenShapeExportOptLightingLimit%
|
||||||
|
|
||||||
# Lightmap lumel size
|
# Lightmap lumel size
|
||||||
ShapeExportOptLumelSize = "%PreGenShapeExportOptLumelSize%"
|
ShapeExportOptLumelSize = "%PreGenShapeExportOptLumelSize%"
|
||||||
|
|
||||||
# Oversampling value. Can be 1, 2, 4 or 8
|
# Oversampling value. Can be 1, 2, 4 or 8
|
||||||
ShapeExportOptOversampling = %PreGenShapeExportOptOversampling%
|
ShapeExportOptOversampling = %PreGenShapeExportOptOversampling%
|
||||||
|
|
||||||
# Does the lightmap must be generated in 8 bits format ?
|
# Does the lightmap must be generated in 8 bits format ?
|
||||||
ShapeExportOpt8BitsLightmap = "%PreGenShapeExportOpt8BitsLightmap%"
|
ShapeExportOpt8BitsLightmap = "%PreGenShapeExportOpt8BitsLightmap%"
|
||||||
|
|
||||||
# Does the lightmaps export must generate logs ?
|
# Does the lightmaps export must generate logs ?
|
||||||
ShapeExportOptLightmapLog = "%PreGenShapeExportOptLightmapLog%"
|
ShapeExportOptLightmapLog = "%PreGenShapeExportOptLightmapLog%"
|
||||||
|
|
||||||
# Coarse mesh texture mul size
|
# Coarse mesh texture mul size
|
||||||
TextureMulSizeValue = "%PreGenTextureMulSizeValue%"
|
TextureMulSizeValue = "%PreGenTextureMulSizeValue%"
|
||||||
|
|
||||||
ClodConfigFile = ""
|
ClodConfigFile = ""
|
||||||
|
|
||||||
# *** COARSE MESH TEXTURE NAME ***
|
# *** COARSE MESH TEXTURE NAME ***
|
||||||
CoarseMeshTextureNames = [ ]
|
CoarseMeshTextureNames = [ ]
|
||||||
%PreGenCoarseMeshTextureNames%
|
%PreGenCoarseMeshTextureNames%
|
||||||
# *** POSTFIX USED BY THE MULTIPLE TILES SYSTEM ***
|
# *** POSTFIX USED BY THE MULTIPLE TILES SYSTEM ***
|
||||||
MultipleTilesPostfix = [ ]
|
MultipleTilesPostfix = [ ]
|
||||||
%PreGenMultipleTilesPostfix%
|
%PreGenMultipleTilesPostfix%
|
||||||
# *** BANK EXPORT OPTIONS ***
|
# *** BANK EXPORT OPTIONS ***
|
||||||
|
|
||||||
# Name of the tilebank to use
|
# Name of the tilebank to use
|
||||||
BankTileBankName = EcosystemName
|
BankTileBankName = EcosystemName
|
||||||
|
|
||||||
# *** RBANK EXPORT OPTIONS ***
|
# *** RBANK EXPORT OPTIONS ***
|
||||||
|
|
||||||
# Output names
|
# Output names
|
||||||
RbankRbankName = "_invalid"
|
RbankRbankName = "_invalid"
|
||||||
|
|
||||||
# *** LIGO OPTIONS ***
|
# *** LIGO OPTIONS ***
|
||||||
|
|
||||||
LigoExportLand = ""
|
LigoExportLand = ""
|
||||||
LigoExportOnePass = 0
|
LigoExportOnePass = 0
|
||||||
|
|
||||||
# *** MAPS OPTIONS ***
|
# *** MAPS OPTIONS ***
|
||||||
|
|
||||||
ReduceBitmapFactor = 0
|
ReduceBitmapFactor = 0
|
||||||
# list all panoply files
|
# list all panoply files
|
||||||
MapPanoplyFileList = None
|
MapPanoplyFileList = None
|
||||||
# name of the .hlsbank to build.
|
# name of the .hlsbank to build.
|
||||||
MapHlsBankFileName = None
|
MapHlsBankFileName = None
|
||||||
|
|
||||||
# *** SHAPE BUILD OPTIONS *
|
# *** SHAPE BUILD OPTIONS *
|
||||||
|
|
||||||
BuildShadowSkinEnabled = False
|
BuildShadowSkinEnabled = False
|
||||||
ClodConfigFile = ""
|
ClodConfigFile = ""
|
||||||
|
|
||||||
# *** PACS_PRIM OPTIONS ***
|
# *** PACS_PRIM OPTIONS ***
|
||||||
WantLandscapeColPrimPacsList = True
|
WantLandscapeColPrimPacsList = True
|
||||||
|
@ -1,65 +1,65 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief Run all setup processes
|
# \brief Run all setup processes
|
||||||
# \date 2009-02-18 15:28GMT
|
# \date 2009-02-18 15:28GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Run all setup processes
|
# Run all setup processes
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../configuration")
|
sys.path.append("../configuration")
|
||||||
if os.path.isfile("generate_all.log"):
|
if os.path.isfile("generate_all.log"):
|
||||||
os.remove("generate_all.log")
|
os.remove("generate_all.log")
|
||||||
log = open("generate_all.log", "w")
|
log = open("generate_all.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from tools import *
|
from tools import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Generate all")
|
printLog(log, "--- Generate all")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.call([ "python", "generate_simple_max_exporters.py" ])
|
subprocess.call([ "python", "generate_simple_max_exporters.py" ])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + processName + "> " + str(e))
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.call([ "python", "generate_tagged_max_exporters.py" ])
|
subprocess.call([ "python", "generate_tagged_max_exporters.py" ])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + processName + "> " + str(e))
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.call([ "python", "generate_ecosystem_projects.py" ])
|
subprocess.call([ "python", "generate_ecosystem_projects.py" ])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + processName + "> " + str(e))
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
@ -1,278 +1,278 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file generate_ecosystem_projects.py
|
# \file generate_ecosystem_projects.py
|
||||||
# \brief Run all setup processes
|
# \brief Run all setup processes
|
||||||
# \date 2010-09-02 10:36GMT
|
# \date 2010-09-02 10:36GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Generate ecosystem projects
|
# Generate ecosystem projects
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../configuration")
|
sys.path.append("../configuration")
|
||||||
if os.path.isfile("generate_ecosystem_projects.log"):
|
if os.path.isfile("generate_ecosystem_projects.log"):
|
||||||
os.remove("generate_ecosystem_projects.log")
|
os.remove("generate_ecosystem_projects.log")
|
||||||
log = open("generate_ecosystem_projects.log", "w")
|
log = open("generate_ecosystem_projects.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from tools import *
|
from tools import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Generate ecosystem projects")
|
printLog(log, "--- Generate ecosystem projects")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
templateDir = os.getcwd().replace("\\", "/") + "/ecosystem_project_template"
|
templateDir = os.getcwd().replace("\\", "/") + "/ecosystem_project_template"
|
||||||
mkPath(log, templateDir)
|
mkPath(log, templateDir)
|
||||||
|
|
||||||
os.chdir("..")
|
os.chdir("..")
|
||||||
|
|
||||||
|
|
||||||
# Scroll down to add an ecosystem.
|
# Scroll down to add an ecosystem.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DefaultShapeExportOptExportLighting = "true"
|
DefaultShapeExportOptExportLighting = "true"
|
||||||
DefaultShapeExportOptShadow = "true"
|
DefaultShapeExportOptShadow = "true"
|
||||||
DefaultShapeExportOptLightingLimit = "1"
|
DefaultShapeExportOptLightingLimit = "1"
|
||||||
DefaultShapeExportOptLumelSize = "0.25"
|
DefaultShapeExportOptLumelSize = "0.25"
|
||||||
DefaultShapeExportOptOversampling = "1"
|
DefaultShapeExportOptOversampling = "1"
|
||||||
DefaultShapeExportOpt8BitsLightmap = "true"
|
DefaultShapeExportOpt8BitsLightmap = "true"
|
||||||
DefaultShapeExportOptLightmapLog = "true"
|
DefaultShapeExportOptLightmapLog = "true"
|
||||||
DefaultTextureMulSizeValue = "1.5"
|
DefaultTextureMulSizeValue = "1.5"
|
||||||
DefaultSeasonSuffixes = [ "sp" ] + [ "su" ] + [ "au" ] + [ "wi" ]
|
DefaultSeasonSuffixes = [ "sp" ] + [ "su" ] + [ "au" ] + [ "wi" ]
|
||||||
DefaultMapSubdirectories = [ ]
|
DefaultMapSubdirectories = [ ]
|
||||||
DefaultTileDirectories = [ ]
|
DefaultTileDirectories = [ ]
|
||||||
|
|
||||||
|
|
||||||
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
||||||
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
||||||
ShapeExportOptLightingLimit = DefaultShapeExportOptLightingLimit
|
ShapeExportOptLightingLimit = DefaultShapeExportOptLightingLimit
|
||||||
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
||||||
ShapeExportOptOversampling = DefaultShapeExportOptOversampling
|
ShapeExportOptOversampling = DefaultShapeExportOptOversampling
|
||||||
ShapeExportOpt8BitsLightmap = DefaultShapeExportOpt8BitsLightmap
|
ShapeExportOpt8BitsLightmap = DefaultShapeExportOpt8BitsLightmap
|
||||||
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
||||||
TextureMulSizeValue = DefaultTextureMulSizeValue
|
TextureMulSizeValue = DefaultTextureMulSizeValue
|
||||||
SeasonSuffixes = DefaultSeasonSuffixes
|
SeasonSuffixes = DefaultSeasonSuffixes
|
||||||
MapSubdirectories = DefaultMapSubdirectories
|
MapSubdirectories = DefaultMapSubdirectories
|
||||||
TileDirectories = DefaultTileDirectories
|
TileDirectories = DefaultTileDirectories
|
||||||
|
|
||||||
|
|
||||||
PreGenDateTimeStamp = None
|
PreGenDateTimeStamp = None
|
||||||
PreGenEcosystemName = None
|
PreGenEcosystemName = None
|
||||||
PreGenDatabaseRootName = None
|
PreGenDatabaseRootName = None
|
||||||
PreGenCoarseMeshTextureNames = None
|
PreGenCoarseMeshTextureNames = None
|
||||||
PreGenMultipleTilesPostfix = None
|
PreGenMultipleTilesPostfix = None
|
||||||
PreGenMapSubdirectories = None
|
PreGenMapSubdirectories = None
|
||||||
PreGenTileSourceDirectories = None
|
PreGenTileSourceDirectories = None
|
||||||
|
|
||||||
|
|
||||||
def transformLine(line):
|
def transformLine(line):
|
||||||
newline = line.replace("%PreGenWarning%", "WARNING : this is a generated file, don't change it !")
|
newline = line.replace("%PreGenWarning%", "WARNING : this is a generated file, don't change it !")
|
||||||
newline = newline.replace("%PreGenDateTimeStamp%", PreGenDateTimeStamp)
|
newline = newline.replace("%PreGenDateTimeStamp%", PreGenDateTimeStamp)
|
||||||
|
|
||||||
newline = newline.replace("%PreGenEcosystemName%", PreGenEcosystemName)
|
newline = newline.replace("%PreGenEcosystemName%", PreGenEcosystemName)
|
||||||
newline = newline.replace("%PreGenDatabaseRootName%", PreGenDatabaseRootName)
|
newline = newline.replace("%PreGenDatabaseRootName%", PreGenDatabaseRootName)
|
||||||
|
|
||||||
newline = newline.replace("%PreGenCoarseMeshTextureNames%", PreGenCoarseMeshTextureNames)
|
newline = newline.replace("%PreGenCoarseMeshTextureNames%", PreGenCoarseMeshTextureNames)
|
||||||
newline = newline.replace("%PreGenMultipleTilesPostfix%", PreGenMultipleTilesPostfix)
|
newline = newline.replace("%PreGenMultipleTilesPostfix%", PreGenMultipleTilesPostfix)
|
||||||
newline = newline.replace("%PreGenMapSubdirectories%", PreGenMapSubdirectories)
|
newline = newline.replace("%PreGenMapSubdirectories%", PreGenMapSubdirectories)
|
||||||
newline = newline.replace("%PreGenTileSourceDirectories%", PreGenTileSourceDirectories)
|
newline = newline.replace("%PreGenTileSourceDirectories%", PreGenTileSourceDirectories)
|
||||||
|
|
||||||
newline = newline.replace("%PreGenShapeExportOptExportLighting%", ShapeExportOptExportLighting)
|
newline = newline.replace("%PreGenShapeExportOptExportLighting%", ShapeExportOptExportLighting)
|
||||||
newline = newline.replace("%PreGenShapeExportOptShadow%", ShapeExportOptShadow)
|
newline = newline.replace("%PreGenShapeExportOptShadow%", ShapeExportOptShadow)
|
||||||
newline = newline.replace("%PreGenShapeExportOptLightingLimit%", ShapeExportOptLightingLimit)
|
newline = newline.replace("%PreGenShapeExportOptLightingLimit%", ShapeExportOptLightingLimit)
|
||||||
newline = newline.replace("%PreGenShapeExportOptLumelSize%", ShapeExportOptLumelSize)
|
newline = newline.replace("%PreGenShapeExportOptLumelSize%", ShapeExportOptLumelSize)
|
||||||
newline = newline.replace("%PreGenShapeExportOptOversampling%", ShapeExportOptOversampling)
|
newline = newline.replace("%PreGenShapeExportOptOversampling%", ShapeExportOptOversampling)
|
||||||
newline = newline.replace("%PreGenShapeExportOpt8BitsLightmap%", ShapeExportOpt8BitsLightmap)
|
newline = newline.replace("%PreGenShapeExportOpt8BitsLightmap%", ShapeExportOpt8BitsLightmap)
|
||||||
newline = newline.replace("%PreGenShapeExportOptLightmapLog%", ShapeExportOptLightmapLog)
|
newline = newline.replace("%PreGenShapeExportOptLightmapLog%", ShapeExportOptLightmapLog)
|
||||||
newline = newline.replace("%PreGenTextureMulSizeValue%", TextureMulSizeValue)
|
newline = newline.replace("%PreGenTextureMulSizeValue%", TextureMulSizeValue)
|
||||||
newline = newline.replace("%PreGenTileSourceDirectories%", PreGenTileSourceDirectories)
|
newline = newline.replace("%PreGenTileSourceDirectories%", PreGenTileSourceDirectories)
|
||||||
|
|
||||||
return newline
|
return newline
|
||||||
|
|
||||||
def generateFile(sourceFile, destFile):
|
def generateFile(sourceFile, destFile):
|
||||||
srcf = open(sourceFile, "r")
|
srcf = open(sourceFile, "r")
|
||||||
dstf = open(destFile, "w")
|
dstf = open(destFile, "w")
|
||||||
printLog(log, "WRITE " + destFile)
|
printLog(log, "WRITE " + destFile)
|
||||||
for line in srcf:
|
for line in srcf:
|
||||||
dstf.write(transformLine(line))
|
dstf.write(transformLine(line))
|
||||||
dstf.close()
|
dstf.close()
|
||||||
srcf.close()
|
srcf.close()
|
||||||
|
|
||||||
def generateEcosystem(ecosystemName, databaseRootName):
|
def generateEcosystem(ecosystemName, databaseRootName):
|
||||||
global PreGenEcosystemName
|
global PreGenEcosystemName
|
||||||
PreGenEcosystemName = ecosystemName
|
PreGenEcosystemName = ecosystemName
|
||||||
global PreGenDatabaseRootName
|
global PreGenDatabaseRootName
|
||||||
PreGenDatabaseRootName = databaseRootName
|
PreGenDatabaseRootName = databaseRootName
|
||||||
global PreGenDateTimeStamp
|
global PreGenDateTimeStamp
|
||||||
PreGenDateTimeStamp = time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time()))
|
PreGenDateTimeStamp = time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time()))
|
||||||
|
|
||||||
global PreGenMultipleTilesPostfix
|
global PreGenMultipleTilesPostfix
|
||||||
PreGenMultipleTilesPostfix = ""
|
PreGenMultipleTilesPostfix = ""
|
||||||
global PreGenCoarseMeshTextureNames
|
global PreGenCoarseMeshTextureNames
|
||||||
PreGenCoarseMeshTextureNames = ""
|
PreGenCoarseMeshTextureNames = ""
|
||||||
global PreGenTileSourceDirectories
|
global PreGenTileSourceDirectories
|
||||||
PreGenTileSourceDirectories = ""
|
PreGenTileSourceDirectories = ""
|
||||||
for suffix in SeasonSuffixes:
|
for suffix in SeasonSuffixes:
|
||||||
PreGenMultipleTilesPostfix += "MultipleTilesPostfix += [ \"_" + suffix + "\" ]\n"
|
PreGenMultipleTilesPostfix += "MultipleTilesPostfix += [ \"_" + suffix + "\" ]\n"
|
||||||
PreGenCoarseMeshTextureNames += "CoarseMeshTextureNames += [ \"nel_coarse_mesh_\" + EcosystemName + \"_" + suffix + "\" ]\n"
|
PreGenCoarseMeshTextureNames += "CoarseMeshTextureNames += [ \"nel_coarse_mesh_\" + EcosystemName + \"_" + suffix + "\" ]\n"
|
||||||
for tiledir in TileDirectories:
|
for tiledir in TileDirectories:
|
||||||
PreGenTileSourceDirectories += "TilesSourceDirectories += [ \"landscape/_texture_tiles/\" + EcosystemName + \"_" + suffix + "/" + tiledir + "\" ]\n"
|
PreGenTileSourceDirectories += "TilesSourceDirectories += [ \"landscape/_texture_tiles/\" + EcosystemName + \"_" + suffix + "/" + tiledir + "\" ]\n"
|
||||||
global PreGenMapSubdirectories
|
global PreGenMapSubdirectories
|
||||||
PreGenMapSubdirectories = ""
|
PreGenMapSubdirectories = ""
|
||||||
for subdir in MapSubdirectories:
|
for subdir in MapSubdirectories:
|
||||||
PreGenMapSubdirectories += "MapSourceDirectories += [ DatabaseRootPath + \"/decors/_textures/" + subdir + "\" ]\n"
|
PreGenMapSubdirectories += "MapSourceDirectories += [ DatabaseRootPath + \"/decors/_textures/" + subdir + "\" ]\n"
|
||||||
|
|
||||||
destDir = WorkspaceDirectory + "/ecosystems/" + ecosystemName
|
destDir = WorkspaceDirectory + "/ecosystems/" + ecosystemName
|
||||||
mkPath(log, destDir)
|
mkPath(log, destDir)
|
||||||
|
|
||||||
generateFile(templateDir + "/process.py", destDir + "/process.py")
|
generateFile(templateDir + "/process.py", destDir + "/process.py")
|
||||||
generateFile(templateDir + "/directories.py", destDir + "/directories.py")
|
generateFile(templateDir + "/directories.py", destDir + "/directories.py")
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Add new ecosystems below this line.
|
# Add new ecosystems below this line.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# DESERT
|
# DESERT
|
||||||
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
||||||
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
||||||
ShapeExportOptLightingLimit = DefaultShapeExportOptLightingLimit
|
ShapeExportOptLightingLimit = DefaultShapeExportOptLightingLimit
|
||||||
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
||||||
ShapeExportOptOversampling = DefaultShapeExportOptOversampling
|
ShapeExportOptOversampling = DefaultShapeExportOptOversampling
|
||||||
ShapeExportOpt8BitsLightmap = DefaultShapeExportOpt8BitsLightmap
|
ShapeExportOpt8BitsLightmap = DefaultShapeExportOpt8BitsLightmap
|
||||||
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
||||||
TextureMulSizeValue = DefaultTextureMulSizeValue
|
TextureMulSizeValue = DefaultTextureMulSizeValue
|
||||||
SeasonSuffixes = DefaultSeasonSuffixes
|
SeasonSuffixes = DefaultSeasonSuffixes
|
||||||
MapSubdirectories = [ ]
|
MapSubdirectories = [ ]
|
||||||
MapSubdirectories += [ "vegetations" ]
|
MapSubdirectories += [ "vegetations" ]
|
||||||
TileDirectories = [ ]
|
TileDirectories = [ ]
|
||||||
TileDirectories += [ "1.5-marecage_profond" ]
|
TileDirectories += [ "1.5-marecage_profond" ]
|
||||||
TileDirectories += [ "1-marecages" ]
|
TileDirectories += [ "1-marecages" ]
|
||||||
TileDirectories += [ "2-citees" ]
|
TileDirectories += [ "2-citees" ]
|
||||||
TileDirectories += [ "3-fond_canyon" ]
|
TileDirectories += [ "3-fond_canyon" ]
|
||||||
TileDirectories += [ "4.2-boisbandeclair" ]
|
TileDirectories += [ "4.2-boisbandeclair" ]
|
||||||
TileDirectories += [ "4.5-desert2boisbande" ]
|
TileDirectories += [ "4.5-desert2boisbande" ]
|
||||||
TileDirectories += [ "4-falaise_bois_bande" ]
|
TileDirectories += [ "4-falaise_bois_bande" ]
|
||||||
TileDirectories += [ "5-falaise_normales" ]
|
TileDirectories += [ "5-falaise_normales" ]
|
||||||
TileDirectories += [ "6.5-desertalternatif" ]
|
TileDirectories += [ "6.5-desertalternatif" ]
|
||||||
TileDirectories += [ "6-desert" ]
|
TileDirectories += [ "6-desert" ]
|
||||||
TileDirectories += [ "7-routes" ]
|
TileDirectories += [ "7-routes" ]
|
||||||
TileDirectories += [ "8-foretbrule" ]
|
TileDirectories += [ "8-foretbrule" ]
|
||||||
generateEcosystem("desert", "fyros")
|
generateEcosystem("desert", "fyros")
|
||||||
|
|
||||||
|
|
||||||
# JUNGLE
|
# JUNGLE
|
||||||
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
||||||
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
||||||
ShapeExportOptLightingLimit = DefaultShapeExportOptLightingLimit
|
ShapeExportOptLightingLimit = DefaultShapeExportOptLightingLimit
|
||||||
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
||||||
ShapeExportOptOversampling = DefaultShapeExportOptOversampling
|
ShapeExportOptOversampling = DefaultShapeExportOptOversampling
|
||||||
ShapeExportOpt8BitsLightmap = "false"
|
ShapeExportOpt8BitsLightmap = "false"
|
||||||
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
||||||
TextureMulSizeValue = DefaultTextureMulSizeValue
|
TextureMulSizeValue = DefaultTextureMulSizeValue
|
||||||
SeasonSuffixes = DefaultSeasonSuffixes
|
SeasonSuffixes = DefaultSeasonSuffixes
|
||||||
MapSubdirectories = [ ]
|
MapSubdirectories = [ ]
|
||||||
MapSubdirectories += [ "vegetations" ]
|
MapSubdirectories += [ "vegetations" ]
|
||||||
TileDirectories = [ ]
|
TileDirectories = [ ]
|
||||||
TileDirectories += [ "10-crevassejungle" ]
|
TileDirectories += [ "10-crevassejungle" ]
|
||||||
TileDirectories += [ "11-paroisjungle" ]
|
TileDirectories += [ "11-paroisjungle" ]
|
||||||
TileDirectories += [ "12-vasejungle" ]
|
TileDirectories += [ "12-vasejungle" ]
|
||||||
TileDirectories += [ "1-junglemousse" ]
|
TileDirectories += [ "1-junglemousse" ]
|
||||||
TileDirectories += [ "2-junglefeuilles" ]
|
TileDirectories += [ "2-junglefeuilles" ]
|
||||||
TileDirectories += [ "3-jungleherbesseche" ]
|
TileDirectories += [ "3-jungleherbesseche" ]
|
||||||
TileDirectories += [ "4-jungleherbevieille" ]
|
TileDirectories += [ "4-jungleherbevieille" ]
|
||||||
TileDirectories += [ "5-jungleterreaux" ]
|
TileDirectories += [ "5-jungleterreaux" ]
|
||||||
TileDirectories += [ "6-junglegoo" ]
|
TileDirectories += [ "6-junglegoo" ]
|
||||||
TileDirectories += [ "7-sciurejungle" ]
|
TileDirectories += [ "7-sciurejungle" ]
|
||||||
TileDirectories += [ "8-terrejungle" ]
|
TileDirectories += [ "8-terrejungle" ]
|
||||||
TileDirectories += [ "9-falaisejungle" ]
|
TileDirectories += [ "9-falaisejungle" ]
|
||||||
TileDirectories += [ "Transitions" ]
|
TileDirectories += [ "Transitions" ]
|
||||||
generateEcosystem("jungle", "jungle")
|
generateEcosystem("jungle", "jungle")
|
||||||
|
|
||||||
|
|
||||||
# PRIMES RACINES
|
# PRIMES RACINES
|
||||||
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
||||||
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
||||||
ShapeExportOptLightingLimit = DefaultShapeExportOptLightingLimit
|
ShapeExportOptLightingLimit = DefaultShapeExportOptLightingLimit
|
||||||
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
||||||
ShapeExportOptOversampling = DefaultShapeExportOptOversampling
|
ShapeExportOptOversampling = DefaultShapeExportOptOversampling
|
||||||
ShapeExportOpt8BitsLightmap = "false"
|
ShapeExportOpt8BitsLightmap = "false"
|
||||||
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
||||||
TextureMulSizeValue = DefaultTextureMulSizeValue
|
TextureMulSizeValue = DefaultTextureMulSizeValue
|
||||||
SeasonSuffixes = DefaultSeasonSuffixes
|
SeasonSuffixes = DefaultSeasonSuffixes
|
||||||
MapSubdirectories = [ ]
|
MapSubdirectories = [ ]
|
||||||
MapSubdirectories += [ "vegetations" ]
|
MapSubdirectories += [ "vegetations" ]
|
||||||
MapSubdirectories += [ "batiments" ]
|
MapSubdirectories += [ "batiments" ]
|
||||||
TileDirectories = [ ]
|
TileDirectories = [ ]
|
||||||
TileDirectories += [ "PR-creux" ]
|
TileDirectories += [ "PR-creux" ]
|
||||||
TileDirectories += [ "PR-dome-moussu" ]
|
TileDirectories += [ "PR-dome-moussu" ]
|
||||||
TileDirectories += [ "PR-kitiniere" ]
|
TileDirectories += [ "PR-kitiniere" ]
|
||||||
TileDirectories += [ "PR-mousse-licken" ]
|
TileDirectories += [ "PR-mousse-licken" ]
|
||||||
TileDirectories += [ "PR-mousse-spongieus" ]
|
TileDirectories += [ "PR-mousse-spongieus" ]
|
||||||
TileDirectories += [ "PR-parois" ]
|
TileDirectories += [ "PR-parois" ]
|
||||||
TileDirectories += [ "PR-sol-mousse" ]
|
TileDirectories += [ "PR-sol-mousse" ]
|
||||||
TileDirectories += [ "PR-souche" ]
|
TileDirectories += [ "PR-souche" ]
|
||||||
TileDirectories += [ "PR-stalagmite" ]
|
TileDirectories += [ "PR-stalagmite" ]
|
||||||
TileDirectories += [ "PR-terre" ]
|
TileDirectories += [ "PR-terre" ]
|
||||||
TileDirectories += [ "aditif" ]
|
TileDirectories += [ "aditif" ]
|
||||||
generateEcosystem("primes_racines", "primes_racines")
|
generateEcosystem("primes_racines", "primes_racines")
|
||||||
|
|
||||||
|
|
||||||
# LACUSTRE
|
# LACUSTRE
|
||||||
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
||||||
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
||||||
ShapeExportOptLightingLimit = "0"
|
ShapeExportOptLightingLimit = "0"
|
||||||
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
||||||
ShapeExportOptOversampling = "8"
|
ShapeExportOptOversampling = "8"
|
||||||
ShapeExportOpt8BitsLightmap = "false"
|
ShapeExportOpt8BitsLightmap = "false"
|
||||||
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
||||||
TextureMulSizeValue = DefaultTextureMulSizeValue
|
TextureMulSizeValue = DefaultTextureMulSizeValue
|
||||||
SeasonSuffixes = DefaultSeasonSuffixes
|
SeasonSuffixes = DefaultSeasonSuffixes
|
||||||
MapSubdirectories = [ ]
|
MapSubdirectories = [ ]
|
||||||
MapSubdirectories += [ "vegetations" ]
|
MapSubdirectories += [ "vegetations" ]
|
||||||
TileDirectories = [ ]
|
TileDirectories = [ ]
|
||||||
TileDirectories += [ "1a-sable-marin" ]
|
TileDirectories += [ "1a-sable-marin" ]
|
||||||
TileDirectories += [ "1-plages" ]
|
TileDirectories += [ "1-plages" ]
|
||||||
TileDirectories += [ "2-iles" ]
|
TileDirectories += [ "2-iles" ]
|
||||||
TileDirectories += [ "2-ilesa" ]
|
TileDirectories += [ "2-ilesa" ]
|
||||||
TileDirectories += [ "2-iles-marines" ]
|
TileDirectories += [ "2-iles-marines" ]
|
||||||
TileDirectories += [ "3-fondmarin2plage" ]
|
TileDirectories += [ "3-fondmarin2plage" ]
|
||||||
TileDirectories += [ "4-marecages" ]
|
TileDirectories += [ "4-marecages" ]
|
||||||
TileDirectories += [ "5-marecages" ]
|
TileDirectories += [ "5-marecages" ]
|
||||||
TileDirectories += [ "5-parois-marine" ]
|
TileDirectories += [ "5-parois-marine" ]
|
||||||
TileDirectories += [ "6-fond_marin" ]
|
TileDirectories += [ "6-fond_marin" ]
|
||||||
TileDirectories += [ "7-bassesiles" ]
|
TileDirectories += [ "7-bassesiles" ]
|
||||||
TileDirectories += [ "7-mousseter" ]
|
TileDirectories += [ "7-mousseter" ]
|
||||||
TileDirectories += [ "7-racines" ]
|
TileDirectories += [ "7-racines" ]
|
||||||
TileDirectories += [ "8-mousse_marine" ]
|
TileDirectories += [ "8-mousse_marine" ]
|
||||||
TileDirectories += [ "constructible" ]
|
TileDirectories += [ "constructible" ]
|
||||||
generateEcosystem("lacustre", "tryker")
|
generateEcosystem("lacustre", "tryker")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
@ -1,100 +1,100 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief Run all setup processes
|
# \brief Run all setup processes
|
||||||
# \date 2009-02-18 15:28GMT
|
# \date 2009-02-18 15:28GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Run all setup processes
|
# Run all setup processes
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../configuration")
|
sys.path.append("../configuration")
|
||||||
if os.path.isfile("generate_simple_max_exporters.log"):
|
if os.path.isfile("generate_simple_max_exporters.log"):
|
||||||
os.remove("generate_simple_max_exporters.log")
|
os.remove("generate_simple_max_exporters.log")
|
||||||
log = open("generate_simple_max_exporters.log", "w")
|
log = open("generate_simple_max_exporters.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from tools import *
|
from tools import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Generate simple max exporters")
|
printLog(log, "--- Generate simple max exporters")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
def processLine(line, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
def processLine(line, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
||||||
newline = line.replace("%PreGenWarning%", "WARNING : this is a generated file, don't change it !")
|
newline = line.replace("%PreGenWarning%", "WARNING : this is a generated file, don't change it !")
|
||||||
newline = newline.replace("%PreGenDateTimeStamp%", dateTimeStamp)
|
newline = newline.replace("%PreGenDateTimeStamp%", dateTimeStamp)
|
||||||
newline = newline.replace("%PreGenProcessName%", processName)
|
newline = newline.replace("%PreGenProcessName%", processName)
|
||||||
newline = newline.replace("%PreGenFileExtension%", fileExtension)
|
newline = newline.replace("%PreGenFileExtension%", fileExtension)
|
||||||
newline = newline.replace("%PreGenSourceDirectoriesVariable%", sourceDirectoriesVariable)
|
newline = newline.replace("%PreGenSourceDirectoriesVariable%", sourceDirectoriesVariable)
|
||||||
newline = newline.replace("%PreGenExportDirectoryVariable%", exportDirectoryVariable)
|
newline = newline.replace("%PreGenExportDirectoryVariable%", exportDirectoryVariable)
|
||||||
newline = newline.replace("%PreGenInstallDirectoryVariable%", clientDirectoryVariable)
|
newline = newline.replace("%PreGenInstallDirectoryVariable%", clientDirectoryVariable)
|
||||||
return newline
|
return newline
|
||||||
|
|
||||||
def generateSimpleMaxExporterFile(sourceFile, destFile, writeMode, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
def generateSimpleMaxExporterFile(sourceFile, destFile, writeMode, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
||||||
srcf = open(sourceFile, "r")
|
srcf = open(sourceFile, "r")
|
||||||
dstf = open(destFile, writeMode)
|
dstf = open(destFile, writeMode)
|
||||||
printLog(log, "WRITE " + destFile + " " + writeMode)
|
printLog(log, "WRITE " + destFile + " " + writeMode)
|
||||||
for line in srcf:
|
for line in srcf:
|
||||||
dstf.write(processLine(line, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp))
|
dstf.write(processLine(line, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp))
|
||||||
dstf.close()
|
dstf.close()
|
||||||
srcf.close()
|
srcf.close()
|
||||||
|
|
||||||
def generateSimpleMaxExporter(processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable):
|
def generateSimpleMaxExporter(processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable):
|
||||||
dateTimeStamp = time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time()))
|
dateTimeStamp = time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time()))
|
||||||
processDir = ScriptDirectory + "/processes/" + processName
|
processDir = ScriptDirectory + "/processes/" + processName
|
||||||
mkPath(log, processDir)
|
mkPath(log, processDir)
|
||||||
maxscriptDir = processDir + "/maxscript"
|
maxscriptDir = processDir + "/maxscript"
|
||||||
mkPath(log, maxscriptDir)
|
mkPath(log, maxscriptDir)
|
||||||
templateDir = os.getcwd().replace("\\", "/") + "/simple_max_exporter_template"
|
templateDir = os.getcwd().replace("\\", "/") + "/simple_max_exporter_template"
|
||||||
mkPath(log, templateDir)
|
mkPath(log, templateDir)
|
||||||
scriptDir = os.getcwd().replace("\\", "/") + "/max_exporter_scripts"
|
scriptDir = os.getcwd().replace("\\", "/") + "/max_exporter_scripts"
|
||||||
mkPath(log, scriptDir)
|
mkPath(log, scriptDir)
|
||||||
|
|
||||||
if not os.path.isfile(processDir + "/0_setup.py"):
|
if not os.path.isfile(processDir + "/0_setup.py"):
|
||||||
generateSimpleMaxExporterFile(templateDir + "/0_setup.py", processDir + "/0_setup.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateSimpleMaxExporterFile(templateDir + "/0_setup.py", processDir + "/0_setup.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
generateSimpleMaxExporterFile(templateDir + "/1_export_header.py", processDir + "/1_export.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateSimpleMaxExporterFile(templateDir + "/1_export_header.py", processDir + "/1_export.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
generateSimpleMaxExporterFile(scriptDir + "/" + fileExtension + ".py", processDir + "/1_export.py", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateSimpleMaxExporterFile(scriptDir + "/" + fileExtension + ".py", processDir + "/1_export.py", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
generateSimpleMaxExporterFile(templateDir + "/1_export_footer.py", processDir + "/1_export.py", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateSimpleMaxExporterFile(templateDir + "/1_export_footer.py", processDir + "/1_export.py", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
if not os.path.isfile(processDir + "/2_build.py"):
|
if not os.path.isfile(processDir + "/2_build.py"):
|
||||||
generateSimpleMaxExporterFile(templateDir + "/2_build.py", processDir + "/2_build.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateSimpleMaxExporterFile(templateDir + "/2_build.py", processDir + "/2_build.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
if not os.path.isfile(processDir + "/3_install.py"):
|
if not os.path.isfile(processDir + "/3_install.py"):
|
||||||
generateSimpleMaxExporterFile(templateDir + "/3_install.py", processDir + "/3_install.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateSimpleMaxExporterFile(templateDir + "/3_install.py", processDir + "/3_install.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
generateSimpleMaxExporterFile(templateDir + "/export_header.ms", maxscriptDir + "/" + fileExtension + "_export.ms", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateSimpleMaxExporterFile(templateDir + "/export_header.ms", maxscriptDir + "/" + fileExtension + "_export.ms", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
generateSimpleMaxExporterFile(scriptDir + "/" + fileExtension + ".ms", maxscriptDir + "/" + fileExtension + "_export.ms", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateSimpleMaxExporterFile(scriptDir + "/" + fileExtension + ".ms", maxscriptDir + "/" + fileExtension + "_export.ms", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
generateSimpleMaxExporterFile(templateDir + "/export_footer.ms", maxscriptDir + "/" + fileExtension + "_export.ms", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateSimpleMaxExporterFile(templateDir + "/export_footer.ms", maxscriptDir + "/" + fileExtension + "_export.ms", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
generateSimpleMaxExporter("skel", "skel", "SkelSourceDirectories", "SkelExportDirectory", "SkelInstallDirectory")
|
generateSimpleMaxExporter("skel", "skel", "SkelSourceDirectories", "SkelExportDirectory", "SkelInstallDirectory")
|
||||||
|
|
||||||
generateSimpleMaxExporter("swt", "swt", "SwtSourceDirectories", "SwtExportDirectory", "SwtInstallDirectory")
|
generateSimpleMaxExporter("swt", "swt", "SwtSourceDirectories", "SwtExportDirectory", "SwtInstallDirectory")
|
||||||
|
|
||||||
generateSimpleMaxExporter("zone", "zone", "ZoneSourceDirectory", "ZoneExportDirectory", "ZoneInstallDirectory")
|
generateSimpleMaxExporter("zone", "zone", "ZoneSourceDirectory", "ZoneExportDirectory", "ZoneInstallDirectory")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
@ -1,120 +1,120 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief Run all setup processes
|
# \brief Run all setup processes
|
||||||
# \date 2009-02-18 15:28GMT
|
# \date 2009-02-18 15:28GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Run all setup processes
|
# Run all setup processes
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../configuration")
|
sys.path.append("../configuration")
|
||||||
if os.path.isfile("generate_tagged_max_exporters.log"):
|
if os.path.isfile("generate_tagged_max_exporters.log"):
|
||||||
os.remove("generate_tagged_max_exporters.log")
|
os.remove("generate_tagged_max_exporters.log")
|
||||||
log = open("generate_tagged_max_exporters.log", "w")
|
log = open("generate_tagged_max_exporters.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from tools import *
|
from tools import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Generate tagged max exporters")
|
printLog(log, "--- Generate tagged max exporters")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
templateDir = os.getcwd().replace("\\", "/") + "/tagged_max_exporter_template"
|
templateDir = os.getcwd().replace("\\", "/") + "/tagged_max_exporter_template"
|
||||||
mkPath(log, templateDir)
|
mkPath(log, templateDir)
|
||||||
scriptDir = os.getcwd().replace("\\", "/") + "/max_exporter_scripts"
|
scriptDir = os.getcwd().replace("\\", "/") + "/max_exporter_scripts"
|
||||||
mkPath(log, scriptDir)
|
mkPath(log, scriptDir)
|
||||||
|
|
||||||
def processLine(line, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
def processLine(line, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
||||||
newline = line.replace("%PreGenWarning%", "WARNING : this is a generated file, don't change it !")
|
newline = line.replace("%PreGenWarning%", "WARNING : this is a generated file, don't change it !")
|
||||||
newline = newline.replace("%PreGenDateTimeStamp%", dateTimeStamp)
|
newline = newline.replace("%PreGenDateTimeStamp%", dateTimeStamp)
|
||||||
newline = newline.replace("%PreGenProcessName%", processName)
|
newline = newline.replace("%PreGenProcessName%", processName)
|
||||||
newline = newline.replace("%PreGenFileExtension%", fileExtension)
|
newline = newline.replace("%PreGenFileExtension%", fileExtension)
|
||||||
newline = newline.replace("%PreGenSourceDirectoriesVariable%", sourceDirectoriesVariable)
|
newline = newline.replace("%PreGenSourceDirectoriesVariable%", sourceDirectoriesVariable)
|
||||||
newline = newline.replace("%PreGenExportDirectoryVariable%", exportDirectoryVariable)
|
newline = newline.replace("%PreGenExportDirectoryVariable%", exportDirectoryVariable)
|
||||||
newline = newline.replace("%PreGenTagExportDirectoryVariable%", tagExportDirectoryVariable)
|
newline = newline.replace("%PreGenTagExportDirectoryVariable%", tagExportDirectoryVariable)
|
||||||
newline = newline.replace("%PreGenInstallDirectoryVariable%", clientDirectoryVariable)
|
newline = newline.replace("%PreGenInstallDirectoryVariable%", clientDirectoryVariable)
|
||||||
return newline
|
return newline
|
||||||
|
|
||||||
def generateTaggedMaxExporterFile(sourceFile, destFile, writeMode, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
def generateTaggedMaxExporterFile(sourceFile, destFile, writeMode, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
||||||
srcf = open(sourceFile, "r")
|
srcf = open(sourceFile, "r")
|
||||||
dstf = open(destFile, writeMode)
|
dstf = open(destFile, writeMode)
|
||||||
printLog(log, "WRITE " + destFile + " " + writeMode)
|
printLog(log, "WRITE " + destFile + " " + writeMode)
|
||||||
for line in srcf:
|
for line in srcf:
|
||||||
dstf.write(processLine(line, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp))
|
dstf.write(processLine(line, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp))
|
||||||
dstf.close()
|
dstf.close()
|
||||||
srcf.close()
|
srcf.close()
|
||||||
|
|
||||||
def generateTaggedMaxScriptFile(processDir, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
def generateTaggedMaxScriptFile(processDir, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
||||||
maxscriptDir = processDir + "/maxscript"
|
maxscriptDir = processDir + "/maxscript"
|
||||||
mkPath(log, maxscriptDir)
|
mkPath(log, maxscriptDir)
|
||||||
generateTaggedMaxExporterFile(templateDir + "/export_header.ms", maxscriptDir + "/" + fileExtension + "_export.ms", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateTaggedMaxExporterFile(templateDir + "/export_header.ms", maxscriptDir + "/" + fileExtension + "_export.ms", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
generateTaggedMaxExporterFile(scriptDir + "/" + fileExtension + ".ms", maxscriptDir + "/" + fileExtension + "_export.ms", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateTaggedMaxExporterFile(scriptDir + "/" + fileExtension + ".ms", maxscriptDir + "/" + fileExtension + "_export.ms", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
generateTaggedMaxExporterFile(templateDir + "/export_footer.ms", maxscriptDir + "/" + fileExtension + "_export.ms", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateTaggedMaxExporterFile(templateDir + "/export_footer.ms", maxscriptDir + "/" + fileExtension + "_export.ms", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
def generateTaggedMaxScript(processName, fileExtension):
|
def generateTaggedMaxScript(processName, fileExtension):
|
||||||
dateTimeStamp = time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time()))
|
dateTimeStamp = time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time()))
|
||||||
processDir = ScriptDirectory + "/processes/" + processName
|
processDir = ScriptDirectory + "/processes/" + processName
|
||||||
mkPath(log, processDir)
|
mkPath(log, processDir)
|
||||||
|
|
||||||
generateTaggedMaxScriptFile(processDir, processName, fileExtension, "_invalid", "_invalid", "_invalid", "_invalid", dateTimeStamp)
|
generateTaggedMaxScriptFile(processDir, processName, fileExtension, "_invalid", "_invalid", "_invalid", "_invalid", dateTimeStamp)
|
||||||
|
|
||||||
def generateTaggedMaxExporter(processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable):
|
def generateTaggedMaxExporter(processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable):
|
||||||
dateTimeStamp = time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time()))
|
dateTimeStamp = time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time()))
|
||||||
processDir = ScriptDirectory + "/processes/" + processName
|
processDir = ScriptDirectory + "/processes/" + processName
|
||||||
mkPath(log, processDir)
|
mkPath(log, processDir)
|
||||||
|
|
||||||
if not os.path.isfile(processDir + "/0_setup.py"):
|
if not os.path.isfile(processDir + "/0_setup.py"):
|
||||||
generateTaggedMaxExporterFile(templateDir + "/0_setup.py", processDir + "/0_setup.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateTaggedMaxExporterFile(templateDir + "/0_setup.py", processDir + "/0_setup.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
generateTaggedMaxExporterFile(templateDir + "/1_export_header.py", processDir + "/1_export.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateTaggedMaxExporterFile(templateDir + "/1_export_header.py", processDir + "/1_export.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
generateTaggedMaxExporterFile(scriptDir + "/" + fileExtension + ".py", processDir + "/1_export.py", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateTaggedMaxExporterFile(scriptDir + "/" + fileExtension + ".py", processDir + "/1_export.py", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
generateTaggedMaxExporterFile(templateDir + "/1_export_footer.py", processDir + "/1_export.py", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateTaggedMaxExporterFile(templateDir + "/1_export_footer.py", processDir + "/1_export.py", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
if not os.path.isfile(processDir + "/2_build.py"):
|
if not os.path.isfile(processDir + "/2_build.py"):
|
||||||
generateTaggedMaxExporterFile(templateDir + "/2_build.py", processDir + "/2_build.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateTaggedMaxExporterFile(templateDir + "/2_build.py", processDir + "/2_build.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
if not os.path.isfile(processDir + "/3_install.py"):
|
if not os.path.isfile(processDir + "/3_install.py"):
|
||||||
generateTaggedMaxExporterFile(templateDir + "/3_install.py", processDir + "/3_install.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateTaggedMaxExporterFile(templateDir + "/3_install.py", processDir + "/3_install.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
generateTaggedMaxScriptFile(processDir, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
generateTaggedMaxScriptFile(processDir, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
generateTaggedMaxExporter("pacs_prim", "pacs_prim", "PacsPrimSourceDirectories", "PacsPrimExportDirectory", "PacsPrimTagExportDirectory", "PacsPrimInstallDirectory")
|
generateTaggedMaxExporter("pacs_prim", "pacs_prim", "PacsPrimSourceDirectories", "PacsPrimExportDirectory", "PacsPrimTagExportDirectory", "PacsPrimInstallDirectory")
|
||||||
|
|
||||||
generateTaggedMaxExporter("clodbank", "clod", "ClodSourceDirectories", "ClodExportDirectory", "ClodTagExportDirectory", "ClodInstallDirectory")
|
generateTaggedMaxExporter("clodbank", "clod", "ClodSourceDirectories", "ClodExportDirectory", "ClodTagExportDirectory", "ClodInstallDirectory")
|
||||||
|
|
||||||
generateTaggedMaxScript("ig", "ig")
|
generateTaggedMaxScript("ig", "ig")
|
||||||
|
|
||||||
generateTaggedMaxExporter("rbank", "cmb", "RBankCmbSourceDirectories", "RBankCmbExportDirectory", "RBankCmbTagExportDirectory", "PacsInstallDirectory")
|
generateTaggedMaxExporter("rbank", "cmb", "RBankCmbSourceDirectories", "RBankCmbExportDirectory", "RBankCmbTagExportDirectory", "PacsInstallDirectory")
|
||||||
|
|
||||||
generateTaggedMaxExporter("veget", "veget", "VegetSourceDirectories", "VegetExportDirectory", "VegetTagExportDirectory", "VegetInstallDirectory")
|
generateTaggedMaxExporter("veget", "veget", "VegetSourceDirectories", "VegetExportDirectory", "VegetTagExportDirectory", "VegetInstallDirectory")
|
||||||
|
|
||||||
generateTaggedMaxScript("shape", "shape")
|
generateTaggedMaxScript("shape", "shape")
|
||||||
|
|
||||||
generateTaggedMaxExporter("anim", "anim", "AnimSourceDirectories", "AnimExportDirectory", "AnimTagExportDirectory", "AnimInstallDirectory")
|
generateTaggedMaxExporter("anim", "anim", "AnimSourceDirectories", "AnimExportDirectory", "AnimTagExportDirectory", "AnimInstallDirectory")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
# Remove bad file from previous script version
|
# Remove bad file from previous script version
|
||||||
listPath = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable% + "/landscape_col_prim_pacs_list.txt"
|
listPath = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable% + "/landscape_col_prim_pacs_list.txt"
|
||||||
if os.path.isfile(listPath):
|
if os.path.isfile(listPath):
|
||||||
os.remove(listPath)
|
os.remove(listPath)
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
printLog(log, ">>> Export skel directly <<<")
|
printLog(log, ">>> Export skel directly <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + SkelExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + SkelExportDirectory)
|
||||||
for dir in SkelSourceDirectories:
|
for dir in SkelSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
copyFilesExtNoSubdirIfNeeded(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + SkelExportDirectory, ".skel")
|
copyFilesExtNoSubdirIfNeeded(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + SkelExportDirectory, ".skel")
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
printLog(log, ">>> Try to copy ligo zone if any <<<")
|
printLog(log, ">>> Try to copy ligo zone if any <<<")
|
||||||
printLog(log, "********************************")
|
printLog(log, "********************************")
|
||||||
printLog(log, "******** TODO ********")
|
printLog(log, "******** TODO ********")
|
||||||
printLog(log, "********************************")
|
printLog(log, "********************************")
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
@ -1,65 +1,65 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief setup %PreGenProcessName%
|
# \brief setup %PreGenProcessName%
|
||||||
# \date %PreGenDateTimeStamp%
|
# \date %PreGenDateTimeStamp%
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup %PreGenProcessName%
|
# Setup %PreGenProcessName%
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup %PreGenProcessName%")
|
printLog(log, "--- Setup %PreGenProcessName%")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dir in %PreGenSourceDirectoriesVariable%:
|
for dir in %PreGenSourceDirectoriesVariable%:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%)
|
mkPath(log, ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + %PreGenInstallDirectoryVariable%)
|
mkPath(log, InstallDirectory + "/" + %PreGenInstallDirectoryVariable%)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,92 +1,92 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# #################################################################
|
# #################################################################
|
||||||
# ## %PreGenWarning%
|
# ## %PreGenWarning%
|
||||||
# #################################################################
|
# #################################################################
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export %PreGenProcessName%
|
# \brief Export %PreGenProcessName%
|
||||||
# \date %PreGenDateTimeStamp%
|
# \date %PreGenDateTimeStamp%
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export %PreGenProcessName%
|
# Export %PreGenProcessName%
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export %PreGenProcessName%")
|
printLog(log, "--- Export %PreGenProcessName%")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
# ...
|
# ...
|
||||||
|
|
||||||
# Export %PreGenProcessName% 3dsmax
|
# Export %PreGenProcessName% 3dsmax
|
||||||
if MaxAvailable:
|
if MaxAvailable:
|
||||||
# Find tools
|
# Find tools
|
||||||
Max = findMax(log, MaxDirectory, MaxExecutable)
|
Max = findMax(log, MaxDirectory, MaxExecutable)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Export %PreGenProcessName% 3dsmax <<<")
|
printLog(log, ">>> Export %PreGenProcessName% 3dsmax <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%)
|
mkPath(log, ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%)
|
||||||
for dir in %PreGenSourceDirectoriesVariable%:
|
for dir in %PreGenSourceDirectoriesVariable%:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + dir, ".max", ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%, ".%PreGenFileExtension%")):
|
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + dir, ".max", ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%, ".%PreGenFileExtension%")):
|
||||||
scriptSrc = "maxscript/%PreGenFileExtension%_export.ms"
|
scriptSrc = "maxscript/%PreGenFileExtension%_export.ms"
|
||||||
scriptDst = MaxUserDirectory + "/scripts/%PreGenFileExtension%_export.ms"
|
scriptDst = MaxUserDirectory + "/scripts/%PreGenFileExtension%_export.ms"
|
||||||
outputLogfile = ScriptDirectory + "/processes/%PreGenProcessName%/log.log"
|
outputLogfile = ScriptDirectory + "/processes/%PreGenProcessName%/log.log"
|
||||||
outputDirectory = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
outputDirectory = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
||||||
maxSourceDir = DatabaseDirectory + "/" + dir
|
maxSourceDir = DatabaseDirectory + "/" + dir
|
||||||
tagList = findFiles(log, outputDirectory, "", ".%PreGenFileExtension%")
|
tagList = findFiles(log, outputDirectory, "", ".%PreGenFileExtension%")
|
||||||
tagLen = len(tagList)
|
tagLen = len(tagList)
|
||||||
if os.path.isfile(scriptDst):
|
if os.path.isfile(scriptDst):
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
tagDiff = 1
|
tagDiff = 1
|
||||||
sSrc = open(scriptSrc, "r")
|
sSrc = open(scriptSrc, "r")
|
||||||
sDst = open(scriptDst, "w")
|
sDst = open(scriptDst, "w")
|
||||||
for line in sSrc:
|
for line in sSrc:
|
||||||
newline = line.replace("%OutputLogfile%", outputLogfile)
|
newline = line.replace("%OutputLogfile%", outputLogfile)
|
||||||
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
||||||
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
||||||
sDst.write(newline)
|
sDst.write(newline)
|
||||||
sSrc.close()
|
sSrc.close()
|
||||||
sDst.close()
|
sDst.close()
|
||||||
while tagDiff > 0:
|
while tagDiff > 0:
|
||||||
printLog(log, "MAXSCRIPT " + scriptDst)
|
printLog(log, "MAXSCRIPT " + scriptDst)
|
||||||
subprocess.call([ Max, "-U", "MAXScript", "%PreGenFileExtension%_export.ms", "-q", "-mi", "-mip" ])
|
subprocess.call([ Max, "-U", "MAXScript", "%PreGenFileExtension%_export.ms", "-q", "-mi", "-mip" ])
|
||||||
tagList = findFiles(log, outputDirectory, "", ".%PreGenFileExtension%")
|
tagList = findFiles(log, outputDirectory, "", ".%PreGenFileExtension%")
|
||||||
newTagLen = len(tagList)
|
newTagLen = len(tagList)
|
||||||
tagDiff = newTagLen - tagLen
|
tagDiff = newTagLen - tagLen
|
||||||
tagLen = newTagLen
|
tagLen = newTagLen
|
||||||
printLog(log, "Exported " + str(tagDiff) + " .%PreGenFileExtension% files!")
|
printLog(log, "Exported " + str(tagDiff) + " .%PreGenFileExtension% files!")
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
|
|
||||||
|
@ -1,49 +1,49 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build %PreGenProcessName%
|
# \brief Build %PreGenProcessName%
|
||||||
# \date %PreGenDateTimeStamp%
|
# \date %PreGenDateTimeStamp%
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build %PreGenProcessName%
|
# Build %PreGenProcessName%
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build %PreGenProcessName%")
|
printLog(log, "--- Build %PreGenProcessName%")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,57 +1,57 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install %PreGenProcessName%
|
# \brief Install %PreGenProcessName%
|
||||||
# \date %PreGenDateTimeStamp%
|
# \date %PreGenDateTimeStamp%
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install %PreGenProcessName%
|
# Install %PreGenProcessName%
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install %PreGenProcessName%")
|
printLog(log, "--- Install %PreGenProcessName%")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Install %PreGenProcessName% <<<")
|
printLog(log, ">>> Install %PreGenProcessName% <<<")
|
||||||
exportPath = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
exportPath = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
||||||
mkPath(log, exportPath)
|
mkPath(log, exportPath)
|
||||||
installPath = InstallDirectory + "/" + %PreGenInstallDirectoryVariable%
|
installPath = InstallDirectory + "/" + %PreGenInstallDirectoryVariable%
|
||||||
mkPath(log, installPath)
|
mkPath(log, installPath)
|
||||||
copyFilesExtNoSubdirIfNeeded(log, exportPath, installPath, ".%PreGenFileExtension%")
|
copyFilesExtNoSubdirIfNeeded(log, exportPath, installPath, ".%PreGenFileExtension%")
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,66 +1,66 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief setup %PreGenProcessName%
|
# \brief setup %PreGenProcessName%
|
||||||
# \date %PreGenDateTimeStamp%
|
# \date %PreGenDateTimeStamp%
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup %PreGenProcessName%
|
# Setup %PreGenProcessName%
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup %PreGenProcessName%")
|
printLog(log, "--- Setup %PreGenProcessName%")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dir in %PreGenSourceDirectoriesVariable%:
|
for dir in %PreGenSourceDirectoriesVariable%:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%)
|
mkPath(log, ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + %PreGenTagExportDirectoryVariable%)
|
mkPath(log, ExportBuildDirectory + "/" + %PreGenTagExportDirectoryVariable%)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + %PreGenInstallDirectoryVariable%)
|
mkPath(log, InstallDirectory + "/" + %PreGenInstallDirectoryVariable%)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
shutil.move("temp_log.log", "log.log")
|
shutil.move("temp_log.log", "log.log")
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,130 +1,130 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# #################################################################
|
# #################################################################
|
||||||
# ## %PreGenWarning%
|
# ## %PreGenWarning%
|
||||||
# #################################################################
|
# #################################################################
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export %PreGenProcessName%
|
# \brief Export %PreGenProcessName%
|
||||||
# \date %PreGenDateTimeStamp%
|
# \date %PreGenDateTimeStamp%
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export %PreGenProcessName%
|
# Export %PreGenProcessName%
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
if os.path.isfile("temp_log.log"):
|
if os.path.isfile("temp_log.log"):
|
||||||
os.remove("temp_log.log")
|
os.remove("temp_log.log")
|
||||||
log = open("temp_log.log", "w")
|
log = open("temp_log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export %PreGenProcessName%")
|
printLog(log, "--- Export %PreGenProcessName%")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
# ...
|
# ...
|
||||||
|
|
||||||
# Export %PreGenProcessName% 3dsmax
|
# Export %PreGenProcessName% 3dsmax
|
||||||
if MaxAvailable:
|
if MaxAvailable:
|
||||||
# Find tools
|
# Find tools
|
||||||
Max = findMax(log, MaxDirectory, MaxExecutable)
|
Max = findMax(log, MaxDirectory, MaxExecutable)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Export %PreGenProcessName% 3dsmax <<<")
|
printLog(log, ">>> Export %PreGenProcessName% 3dsmax <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%)
|
mkPath(log, ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + %PreGenTagExportDirectoryVariable%)
|
mkPath(log, ExportBuildDirectory + "/" + %PreGenTagExportDirectoryVariable%)
|
||||||
for dir in %PreGenSourceDirectoriesVariable%:
|
for dir in %PreGenSourceDirectoriesVariable%:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + dir, ".max", ExportBuildDirectory + "/" + %PreGenTagExportDirectoryVariable%, ".max.tag")):
|
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + dir, ".max", ExportBuildDirectory + "/" + %PreGenTagExportDirectoryVariable%, ".max.tag")):
|
||||||
scriptSrc = "maxscript/%PreGenFileExtension%_export.ms"
|
scriptSrc = "maxscript/%PreGenFileExtension%_export.ms"
|
||||||
scriptDst = MaxUserDirectory + "/scripts/%PreGenFileExtension%_export.ms"
|
scriptDst = MaxUserDirectory + "/scripts/%PreGenFileExtension%_export.ms"
|
||||||
outputLogfile = ScriptDirectory + "/processes/%PreGenProcessName%/log.log"
|
outputLogfile = ScriptDirectory + "/processes/%PreGenProcessName%/log.log"
|
||||||
outputDirectory = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
outputDirectory = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
||||||
tagDirectory = ExportBuildDirectory + "/" + %PreGenTagExportDirectoryVariable%
|
tagDirectory = ExportBuildDirectory + "/" + %PreGenTagExportDirectoryVariable%
|
||||||
maxSourceDir = DatabaseDirectory + "/" + dir
|
maxSourceDir = DatabaseDirectory + "/" + dir
|
||||||
maxRunningTagFile = tagDirectory + "/max_running.tag"
|
maxRunningTagFile = tagDirectory + "/max_running.tag"
|
||||||
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
||||||
tagLen = len(tagList)
|
tagLen = len(tagList)
|
||||||
if os.path.isfile(scriptDst):
|
if os.path.isfile(scriptDst):
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
tagDiff = 1
|
tagDiff = 1
|
||||||
sSrc = open(scriptSrc, "r")
|
sSrc = open(scriptSrc, "r")
|
||||||
sDst = open(scriptDst, "w")
|
sDst = open(scriptDst, "w")
|
||||||
for line in sSrc:
|
for line in sSrc:
|
||||||
newline = line.replace("%OutputLogfile%", outputLogfile)
|
newline = line.replace("%OutputLogfile%", outputLogfile)
|
||||||
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
||||||
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
||||||
newline = newline.replace("%TagDirectory%", tagDirectory)
|
newline = newline.replace("%TagDirectory%", tagDirectory)
|
||||||
sDst.write(newline)
|
sDst.write(newline)
|
||||||
sSrc.close()
|
sSrc.close()
|
||||||
sDst.close()
|
sDst.close()
|
||||||
zeroRetryLimit = 3
|
zeroRetryLimit = 3
|
||||||
while tagDiff > 0:
|
while tagDiff > 0:
|
||||||
mrt = open(maxRunningTagFile, "w")
|
mrt = open(maxRunningTagFile, "w")
|
||||||
mrt.write("moe-moe-kyun")
|
mrt.write("moe-moe-kyun")
|
||||||
mrt.close()
|
mrt.close()
|
||||||
printLog(log, "MAXSCRIPT " + scriptDst)
|
printLog(log, "MAXSCRIPT " + scriptDst)
|
||||||
subprocess.call([ Max, "-U", "MAXScript", "%PreGenFileExtension%_export.ms", "-q", "-mi", "-mip" ])
|
subprocess.call([ Max, "-U", "MAXScript", "%PreGenFileExtension%_export.ms", "-q", "-mi", "-mip" ])
|
||||||
if os.path.exists(outputLogfile):
|
if os.path.exists(outputLogfile):
|
||||||
try:
|
try:
|
||||||
lSrc = open(outputLogfile, "r")
|
lSrc = open(outputLogfile, "r")
|
||||||
for line in lSrc:
|
for line in lSrc:
|
||||||
lineStrip = line.strip()
|
lineStrip = line.strip()
|
||||||
if (len(lineStrip) > 0):
|
if (len(lineStrip) > 0):
|
||||||
printLog(log, lineStrip)
|
printLog(log, lineStrip)
|
||||||
lSrc.close()
|
lSrc.close()
|
||||||
os.remove(outputLogfile)
|
os.remove(outputLogfile)
|
||||||
except Exception:
|
except Exception:
|
||||||
printLog(log, "ERROR Failed to read 3dsmax log")
|
printLog(log, "ERROR Failed to read 3dsmax log")
|
||||||
else:
|
else:
|
||||||
printLog(log, "WARNING No 3dsmax log")
|
printLog(log, "WARNING No 3dsmax log")
|
||||||
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
||||||
newTagLen = len(tagList)
|
newTagLen = len(tagList)
|
||||||
tagDiff = newTagLen - tagLen
|
tagDiff = newTagLen - tagLen
|
||||||
tagLen = newTagLen
|
tagLen = newTagLen
|
||||||
addTagDiff = 0
|
addTagDiff = 0
|
||||||
if os.path.exists(maxRunningTagFile):
|
if os.path.exists(maxRunningTagFile):
|
||||||
printLog(log, "FAIL 3ds Max crashed and/or file export failed!")
|
printLog(log, "FAIL 3ds Max crashed and/or file export failed!")
|
||||||
if tagDiff == 0:
|
if tagDiff == 0:
|
||||||
if zeroRetryLimit > 0:
|
if zeroRetryLimit > 0:
|
||||||
zeroRetryLimit = zeroRetryLimit - 1
|
zeroRetryLimit = zeroRetryLimit - 1
|
||||||
addTagDiff = 1
|
addTagDiff = 1
|
||||||
else:
|
else:
|
||||||
printLog(log, "FAIL Retry limit reached!")
|
printLog(log, "FAIL Retry limit reached!")
|
||||||
else:
|
else:
|
||||||
addTagDiff = 1
|
addTagDiff = 1
|
||||||
os.remove(maxRunningTagFile)
|
os.remove(maxRunningTagFile)
|
||||||
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
||||||
tagDiff += addTagDiff
|
tagDiff += addTagDiff
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
@ -1,49 +1,49 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build %PreGenProcessName%
|
# \brief Build %PreGenProcessName%
|
||||||
# \date %PreGenDateTimeStamp%
|
# \date %PreGenDateTimeStamp%
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build %PreGenProcessName%
|
# Build %PreGenProcessName%
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build %PreGenProcessName%")
|
printLog(log, "--- Build %PreGenProcessName%")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,57 +1,57 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install %PreGenProcessName%
|
# \brief Install %PreGenProcessName%
|
||||||
# \date %PreGenDateTimeStamp%
|
# \date %PreGenDateTimeStamp%
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install %PreGenProcessName%
|
# Install %PreGenProcessName%
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install %PreGenProcessName%")
|
printLog(log, "--- Install %PreGenProcessName%")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Install %PreGenProcessName% <<<")
|
printLog(log, ">>> Install %PreGenProcessName% <<<")
|
||||||
exportPath = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
exportPath = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
||||||
mkPath(log, exportPath)
|
mkPath(log, exportPath)
|
||||||
installPath = InstallDirectory + "/" + %PreGenInstallDirectoryVariable%
|
installPath = InstallDirectory + "/" + %PreGenInstallDirectoryVariable%
|
||||||
mkPath(log, installPath)
|
mkPath(log, installPath)
|
||||||
copyFilesNoTreeIfNeeded(log, exportPath, installPath)
|
copyFilesNoTreeIfNeeded(log, exportPath, installPath)
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,89 +1,89 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief Run all setup processes
|
# \brief Run all setup processes
|
||||||
# \date 2009-02-18 15:28GMT
|
# \date 2009-02-18 15:28GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Run all setup processes
|
# Run all setup processes
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
||||||
sys.path.append("../configuration")
|
sys.path.append("../configuration")
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
||||||
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
#printLog(log, "")
|
#printLog(log, "")
|
||||||
#printLog(log, "-------")
|
#printLog(log, "-------")
|
||||||
#printLog(log, "--- Setup project")
|
#printLog(log, "--- Setup project")
|
||||||
#printLog(log, "-------")
|
#printLog(log, "-------")
|
||||||
#printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
#printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
#printLog(log, "")
|
#printLog(log, "")
|
||||||
|
|
||||||
#printLog(log, "")
|
#printLog(log, "")
|
||||||
#printLog(log, "-------")
|
#printLog(log, "-------")
|
||||||
#printLog(log, "--- Setup client directories")
|
#printLog(log, "--- Setup client directories")
|
||||||
#printLog(log, "-------")
|
#printLog(log, "-------")
|
||||||
#printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
#printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
#printLog(log, "")
|
#printLog(log, "")
|
||||||
#for dir in ClientSetupDirectories:
|
#for dir in ClientSetupDirectories:
|
||||||
# mkPath(log, InstallDirectory + "/" + dir)
|
# mkPath(log, InstallDirectory + "/" + dir)
|
||||||
#printLog(log, "")
|
#printLog(log, "")
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Run the setup processes")
|
printLog(log, "--- Run the setup processes")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
# For each process
|
# For each process
|
||||||
for processName in ProcessToComplete:
|
for processName in ProcessToComplete:
|
||||||
if ((args.includeprocess == None or processName in args.includeprocess) and (args.excludeprocess == None or not processName in args.excludeprocess)):
|
if ((args.includeprocess == None or processName in args.includeprocess) and (args.excludeprocess == None or not processName in args.excludeprocess)):
|
||||||
printLog(log, "PROCESS " + processName)
|
printLog(log, "PROCESS " + processName)
|
||||||
os.chdir(processName)
|
os.chdir(processName)
|
||||||
try:
|
try:
|
||||||
subprocess.call([ "python", "0_setup.py" ])
|
subprocess.call([ "python", "0_setup.py" ])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + processName + "> " + str(e))
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
os.chdir("..")
|
os.chdir("..")
|
||||||
try:
|
try:
|
||||||
processLog = open(processName + "/log.log", "r")
|
processLog = open(processName + "/log.log", "r")
|
||||||
processLogData = processLog.read()
|
processLogData = processLog.read()
|
||||||
processLog.close()
|
processLog.close()
|
||||||
log.write(processLogData)
|
log.write(processLogData)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + processName + "> " + str(e))
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
# subprocess.call("idle.bat")
|
# subprocess.call("idle.bat")
|
||||||
else:
|
else:
|
||||||
printLog(log, "IGNORE PROCESS " + processName)
|
printLog(log, "IGNORE PROCESS " + processName)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
@ -1,73 +1,73 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Run all export processes
|
# \brief Run all export processes
|
||||||
# \date 2009-02-18 09:22GMT
|
# \date 2009-02-18 09:22GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Run all export processes
|
# Run all export processes
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
||||||
sys.path.append("../configuration")
|
sys.path.append("../configuration")
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
||||||
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
# Log error
|
# Log error
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Run the export processes")
|
printLog(log, "--- Run the export processes")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
# For each process
|
# For each process
|
||||||
for processName in ProcessToComplete:
|
for processName in ProcessToComplete:
|
||||||
if ((args.includeprocess == None or processName in args.includeprocess) and (args.excludeprocess == None or not processName in args.excludeprocess)):
|
if ((args.includeprocess == None or processName in args.includeprocess) and (args.excludeprocess == None or not processName in args.excludeprocess)):
|
||||||
printLog(log, "PROCESS " + processName)
|
printLog(log, "PROCESS " + processName)
|
||||||
os.chdir(processName)
|
os.chdir(processName)
|
||||||
try:
|
try:
|
||||||
subprocess.call([ "python", "1_export.py" ])
|
subprocess.call([ "python", "1_export.py" ])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + processName + "> " + str(e))
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
os.chdir("..")
|
os.chdir("..")
|
||||||
try:
|
try:
|
||||||
processLog = open(processName + "/log.log", "r")
|
processLog = open(processName + "/log.log", "r")
|
||||||
processLogData = processLog.read()
|
processLogData = processLog.read()
|
||||||
processLog.close()
|
processLog.close()
|
||||||
log.write(processLogData)
|
log.write(processLogData)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + processName + "> " + str(e))
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
# subprocess.call("idle.bat")
|
# subprocess.call("idle.bat")
|
||||||
else:
|
else:
|
||||||
printLog(log, "IGNORE PROCESS " + processName)
|
printLog(log, "IGNORE PROCESS " + processName)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
@ -1,73 +1,73 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Run all build processes
|
# \brief Run all build processes
|
||||||
# \date 2009-02-18 09:22GMT
|
# \date 2009-02-18 09:22GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Run all build processes
|
# Run all build processes
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
||||||
sys.path.append("../configuration")
|
sys.path.append("../configuration")
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
||||||
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
# Log error
|
# Log error
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Run the build processes")
|
printLog(log, "--- Run the build processes")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
# For each process
|
# For each process
|
||||||
for processName in ProcessToComplete:
|
for processName in ProcessToComplete:
|
||||||
if ((args.includeprocess == None or processName in args.includeprocess) and (args.excludeprocess == None or not processName in args.excludeprocess)):
|
if ((args.includeprocess == None or processName in args.includeprocess) and (args.excludeprocess == None or not processName in args.excludeprocess)):
|
||||||
printLog(log, "PROCESS " + processName)
|
printLog(log, "PROCESS " + processName)
|
||||||
os.chdir(processName)
|
os.chdir(processName)
|
||||||
try:
|
try:
|
||||||
subprocess.call([ "python", "2_build.py" ])
|
subprocess.call([ "python", "2_build.py" ])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + processName + "> " + str(e))
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
os.chdir("..")
|
os.chdir("..")
|
||||||
try:
|
try:
|
||||||
processLog = open(processName + "/log.log", "r")
|
processLog = open(processName + "/log.log", "r")
|
||||||
processLogData = processLog.read()
|
processLogData = processLog.read()
|
||||||
processLog.close()
|
processLog.close()
|
||||||
log.write(processLogData)
|
log.write(processLogData)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + processName + "> " + str(e))
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
# subprocess.call("idle.bat")
|
# subprocess.call("idle.bat")
|
||||||
else:
|
else:
|
||||||
printLog(log, "IGNORE PROCESS " + processName)
|
printLog(log, "IGNORE PROCESS " + processName)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
@ -1,72 +1,72 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Run all install processes
|
# \brief Run all install processes
|
||||||
# \date 2009-02-18 16:19GMT
|
# \date 2009-02-18 16:19GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Run all install processes
|
# Run all install processes
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
|
||||||
sys.path.append("../configuration")
|
sys.path.append("../configuration")
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
parser.add_argument('--includeprocess', '-ipc', nargs='+')
|
||||||
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
parser.add_argument('--excludeprocess', '-epc', nargs='+')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Run the install processes")
|
printLog(log, "--- Run the install processes")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
# For each process
|
# For each process
|
||||||
for processName in ProcessToComplete:
|
for processName in ProcessToComplete:
|
||||||
if ((args.includeprocess == None or processName in args.includeprocess) and (args.excludeprocess == None or not processName in args.excludeprocess)):
|
if ((args.includeprocess == None or processName in args.includeprocess) and (args.excludeprocess == None or not processName in args.excludeprocess)):
|
||||||
printLog(log, "PROCESS " + processName)
|
printLog(log, "PROCESS " + processName)
|
||||||
os.chdir(processName)
|
os.chdir(processName)
|
||||||
try:
|
try:
|
||||||
subprocess.call([ "python", "3_install.py" ])
|
subprocess.call([ "python", "3_install.py" ])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + processName + "> " + str(e))
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
os.chdir("..")
|
os.chdir("..")
|
||||||
try:
|
try:
|
||||||
processLog = open(processName + "/log.log", "r")
|
processLog = open(processName + "/log.log", "r")
|
||||||
processLogData = processLog.read()
|
processLogData = processLog.read()
|
||||||
processLog.close()
|
processLog.close()
|
||||||
log.write(processLogData)
|
log.write(processLogData)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
printLog(log, "<" + processName + "> " + str(e))
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
# subprocess.call("idle.bat")
|
# subprocess.call("idle.bat")
|
||||||
else:
|
else:
|
||||||
printLog(log, "IGNORE PROCESS " + processName)
|
printLog(log, "IGNORE PROCESS " + processName)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
@ -1,66 +1,66 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief setup dummy
|
# \brief setup dummy
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup dummy
|
# Setup dummy
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup dummy")
|
printLog(log, "--- Setup dummy")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
#for dir in MapSourceDirectories:
|
#for dir in MapSourceDirectories:
|
||||||
# mkPath(log, DatabaseDirectory + "/" + dir)
|
# mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
#mkPath(log, ExportBuildDirectory + "/" + DummyTagExportDirectory)
|
#mkPath(log, ExportBuildDirectory + "/" + DummyTagExportDirectory)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
#mkPath(log, ExportBuildDirectory + "/" + DummyWithCoarseMeshBuildDirectory)
|
#mkPath(log, ExportBuildDirectory + "/" + DummyWithCoarseMeshBuildDirectory)
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
#mkPath(log, InstallDirectory + "/" + DummyInstallDirectory)
|
#mkPath(log, InstallDirectory + "/" + DummyInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,117 +1,117 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export dummy
|
# \brief Export dummy
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export dummy
|
# Export dummy
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export dummy")
|
printLog(log, "--- Export dummy")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
if MaxAvailable:
|
if MaxAvailable:
|
||||||
# Find tools
|
# Find tools
|
||||||
Max = findMax(log, MaxDirectory, MaxExecutable)
|
Max = findMax(log, MaxDirectory, MaxExecutable)
|
||||||
# ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
# ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Export dummy 3dsmax
|
# Export dummy 3dsmax
|
||||||
printLog(log, ">>> Export dummy 3dsmax <<<")
|
printLog(log, ">>> Export dummy 3dsmax <<<")
|
||||||
|
|
||||||
# Build paths
|
# Build paths
|
||||||
#scriptSrc = "maxscript/dummy_export.ms"
|
#scriptSrc = "maxscript/dummy_export.ms"
|
||||||
# scriptDst = MaxDirectory + "/scripts/dummy_export.ms"
|
# scriptDst = MaxDirectory + "/scripts/dummy_export.ms"
|
||||||
#scriptDst = MaxUserDirectory + "/scripts/dummy_export.ms"
|
#scriptDst = MaxUserDirectory + "/scripts/dummy_export.ms"
|
||||||
#logFile = ScriptDirectory + "/processes/dummy/log.log"
|
#logFile = ScriptDirectory + "/processes/dummy/log.log"
|
||||||
#outDirTag = ExportBuildDirectory + "/" + DummyTagExportDirectory
|
#outDirTag = ExportBuildDirectory + "/" + DummyTagExportDirectory
|
||||||
#mkPath(log, outDirTag)
|
#mkPath(log, outDirTag)
|
||||||
#outDirWithoutCoarse = ExportBuildDirectory + "/" + DummyExportDirectory
|
#outDirWithoutCoarse = ExportBuildDirectory + "/" + DummyExportDirectory
|
||||||
#mkPath(log, outDirWithoutCoarse)
|
#mkPath(log, outDirWithoutCoarse)
|
||||||
#outDirWithCoarse = ExportBuildDirectory + "/" + DummyWithCoarseMeshExportDirectory
|
#outDirWithCoarse = ExportBuildDirectory + "/" + DummyWithCoarseMeshExportDirectory
|
||||||
#mkPath(log, outDirWithCoarse)
|
#mkPath(log, outDirWithCoarse)
|
||||||
#outDirLightmap = ExportBuildDirectory + "/" + DummyLightmapNotOptimizedExportDirectory
|
#outDirLightmap = ExportBuildDirectory + "/" + DummyLightmapNotOptimizedExportDirectory
|
||||||
#mkPath(log, outDirLightmap)
|
#mkPath(log, outDirLightmap)
|
||||||
#outDirAnim = ExportBuildDirectory + "/" + DummyAnimExportDirectory
|
#outDirAnim = ExportBuildDirectory + "/" + DummyAnimExportDirectory
|
||||||
#mkPath(log, outDirAnim)
|
#mkPath(log, outDirAnim)
|
||||||
|
|
||||||
#tagList = findFiles(log, outDirTag, "", ".tag")
|
#tagList = findFiles(log, outDirTag, "", ".tag")
|
||||||
#tagLen = len(tagList)
|
#tagLen = len(tagList)
|
||||||
|
|
||||||
# For each directoy
|
# For each directoy
|
||||||
#if os.path.isfile(scriptDst):
|
#if os.path.isfile(scriptDst):
|
||||||
# os.remove(scriptDst)
|
# os.remove(scriptDst)
|
||||||
#for dir in DummySourceDirectories:
|
#for dir in DummySourceDirectories:
|
||||||
# tagDiff = 1
|
# tagDiff = 1
|
||||||
# dummySourceDir = DatabaseDirectory + "/" + dir
|
# dummySourceDir = DatabaseDirectory + "/" + dir
|
||||||
# mkPath(log, dummySourceDir)
|
# mkPath(log, dummySourceDir)
|
||||||
# sSrc = open(scriptSrc, "r")
|
# sSrc = open(scriptSrc, "r")
|
||||||
# sDst = open(scriptDst, "w")
|
# sDst = open(scriptDst, "w")
|
||||||
# for line in sSrc:
|
# for line in sSrc:
|
||||||
# newline = line.replace("output_logfile", logFile)
|
# newline = line.replace("output_logfile", logFile)
|
||||||
# newline = newline.replace("dummy_source_directory", dummySourceDir)
|
# newline = newline.replace("dummy_source_directory", dummySourceDir)
|
||||||
# newline = newline.replace("output_directory_tag", outDirTag)
|
# newline = newline.replace("output_directory_tag", outDirTag)
|
||||||
# newline = newline.replace("output_directory_without_coarse_mesh", outDirWithoutCoarse)
|
# newline = newline.replace("output_directory_without_coarse_mesh", outDirWithoutCoarse)
|
||||||
# newline = newline.replace("output_directory_with_coarse_mesh", outDirWithCoarse)
|
# newline = newline.replace("output_directory_with_coarse_mesh", outDirWithCoarse)
|
||||||
# newline = newline.replace("dummy_export_opt_export_lighting", DummyExportOptExportLighting)
|
# newline = newline.replace("dummy_export_opt_export_lighting", DummyExportOptExportLighting)
|
||||||
# newline = newline.replace("dummy_export_opt_shadow", DummyExportOptShadow)
|
# newline = newline.replace("dummy_export_opt_shadow", DummyExportOptShadow)
|
||||||
# newline = newline.replace("dummy_export_opt_lighting_limit", str(DummyExportOptLightingLimit))
|
# newline = newline.replace("dummy_export_opt_lighting_limit", str(DummyExportOptLightingLimit))
|
||||||
# newline = newline.replace("dummy_export_opt_lumel_size", DummyExportOptLumelSize)
|
# newline = newline.replace("dummy_export_opt_lumel_size", DummyExportOptLumelSize)
|
||||||
# newline = newline.replace("dummy_export_opt_oversampling", str(DummyExportOptOversampling))
|
# newline = newline.replace("dummy_export_opt_oversampling", str(DummyExportOptOversampling))
|
||||||
# newline = newline.replace("dummy_export_opt_lightmap_log", DummyExportOptLightmapLog)
|
# newline = newline.replace("dummy_export_opt_lightmap_log", DummyExportOptLightmapLog)
|
||||||
# newline = newline.replace("dummy_lightmap_path", outDirLightmap)
|
# newline = newline.replace("dummy_lightmap_path", outDirLightmap)
|
||||||
# newline = newline.replace("output_directory_anim", outDirAnim)
|
# newline = newline.replace("output_directory_anim", outDirAnim)
|
||||||
# sDst.write(newline)
|
# sDst.write(newline)
|
||||||
# sSrc.close()
|
# sSrc.close()
|
||||||
# sDst.close()
|
# sDst.close()
|
||||||
# while tagDiff > 0:
|
# while tagDiff > 0:
|
||||||
# printLog(log, "MAXSCRIPT " + scriptDst)
|
# printLog(log, "MAXSCRIPT " + scriptDst)
|
||||||
# subprocess.call([ Max, "-U", "MAXScript", "dummy_export.ms", "-q", "-mi", "-mip" ])
|
# subprocess.call([ Max, "-U", "MAXScript", "dummy_export.ms", "-q", "-mi", "-mip" ])
|
||||||
# tagList = findFiles(log, outDirTag, "", ".tag")
|
# tagList = findFiles(log, outDirTag, "", ".tag")
|
||||||
# newTagLen = len(tagList)
|
# newTagLen = len(tagList)
|
||||||
# tagDiff = newTagLen - tagLen
|
# tagDiff = newTagLen - tagLen
|
||||||
# tagLen = newTagLen
|
# tagLen = newTagLen
|
||||||
# printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
# printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
||||||
# tagDiff += hackBdummyTree() # force rerun also when bdummy tree deleted
|
# tagDiff += hackBdummyTree() # force rerun also when bdummy tree deleted
|
||||||
# os.remove(scriptDst)
|
# os.remove(scriptDst)
|
||||||
|
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,96 +1,96 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build dummy
|
# \brief Build dummy
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build dummy
|
# Build dummy
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build dummy")
|
printLog(log, "--- Build dummy")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
||||||
BuildShadowSkin = findTool(log, ToolDirectories, BuildShadowSkinTool, ToolSuffix)
|
BuildShadowSkin = findTool(log, ToolDirectories, BuildShadowSkinTool, ToolSuffix)
|
||||||
BuildClodtex = findTool(log, ToolDirectories, BuildClodtexTool, ToolSuffix)
|
BuildClodtex = findTool(log, ToolDirectories, BuildClodtexTool, ToolSuffix)
|
||||||
LightmapOptimizer = findTool(log, ToolDirectories, LightmapOptimizerTool, ToolSuffix)
|
LightmapOptimizer = findTool(log, ToolDirectories, LightmapOptimizerTool, ToolSuffix)
|
||||||
TgaToDds = findTool(log, ToolDirectories, TgaToDdsTool, ToolSuffix)
|
TgaToDds = findTool(log, ToolDirectories, TgaToDdsTool, ToolSuffix)
|
||||||
BuildCoarseMesh = findTool(log, ToolDirectories, BuildCoarseMeshTool, ToolSuffix)
|
BuildCoarseMesh = findTool(log, ToolDirectories, BuildCoarseMeshTool, ToolSuffix)
|
||||||
|
|
||||||
#if 1: # todo: CoarseMeshTextureNames length > 0 ...
|
#if 1: # todo: CoarseMeshTextureNames length > 0 ...
|
||||||
# printLog(log, ">>> Build coarse meshes <<<")
|
# printLog(log, ">>> Build coarse meshes <<<")
|
||||||
# dummyWithCoarseMesh = ExportBuildDirectory + "/" + DummyWithCoarseMeshExportDirectory
|
# dummyWithCoarseMesh = ExportBuildDirectory + "/" + DummyWithCoarseMeshExportDirectory
|
||||||
# mkPath(log, dummyWithCoarseMesh)
|
# mkPath(log, dummyWithCoarseMesh)
|
||||||
# dummyWithCoarseMeshBuilded = ExportBuildDirectory + "/" + DummyWithCoarseMeshBuildDirectory
|
# dummyWithCoarseMeshBuilded = ExportBuildDirectory + "/" + DummyWithCoarseMeshBuildDirectory
|
||||||
# mkPath(log, dummyWithCoarseMeshBuilded)
|
# mkPath(log, dummyWithCoarseMeshBuilded)
|
||||||
# cf = open("confdummy_generated.cfg", "w")
|
# cf = open("confdummy_generated.cfg", "w")
|
||||||
# cf.write("texture_mul_size = " + TextureMulSizeValue + ";\n")
|
# cf.write("texture_mul_size = " + TextureMulSizeValue + ";\n")
|
||||||
# cf.write("\n")
|
# cf.write("\n")
|
||||||
# cf.write("search_path = \n")
|
# cf.write("search_path = \n")
|
||||||
# cf.write("{\n")
|
# cf.write("{\n")
|
||||||
# cf.write("\t\"" + dummyWithCoarseMesh + "\", \n")
|
# cf.write("\t\"" + dummyWithCoarseMesh + "\", \n")
|
||||||
# for dir in MapSourceDirectories:
|
# for dir in MapSourceDirectories:
|
||||||
# cf.write("\t\"" + DatabaseDirectory + "/" + dir + "\", \n")
|
# cf.write("\t\"" + DatabaseDirectory + "/" + dir + "\", \n")
|
||||||
# cf.write("};\n")
|
# cf.write("};\n")
|
||||||
# cf.write("\n")
|
# cf.write("\n")
|
||||||
# cf.write("list_mesh = \n")
|
# cf.write("list_mesh = \n")
|
||||||
# cf.write("{\n")
|
# cf.write("{\n")
|
||||||
# # For each dummy with coarse mesh
|
# # For each dummy with coarse mesh
|
||||||
# files = findFiles(log, dummyWithCoarseMesh, "", ".dummy")
|
# files = findFiles(log, dummyWithCoarseMesh, "", ".dummy")
|
||||||
# for file in files:
|
# for file in files:
|
||||||
# sourceFile = dummyWithCoarseMesh + "/" + file
|
# sourceFile = dummyWithCoarseMesh + "/" + file
|
||||||
# if os.path.isfile(sourceFile):
|
# if os.path.isfile(sourceFile):
|
||||||
# destFile = dummyWithCoarseMeshBuilded + "/" + file
|
# destFile = dummyWithCoarseMeshBuilded + "/" + file
|
||||||
# cf.write("\t\"" + file + "\", \"" + destFile + "\", \n")
|
# cf.write("\t\"" + file + "\", \"" + destFile + "\", \n")
|
||||||
# cf.write("};\n")
|
# cf.write("};\n")
|
||||||
# cf.write("\n")
|
# cf.write("\n")
|
||||||
# cf.write("output_textures = \n")
|
# cf.write("output_textures = \n")
|
||||||
# cf.write("{\n")
|
# cf.write("{\n")
|
||||||
# # For each dummy with coarse mesh
|
# # For each dummy with coarse mesh
|
||||||
# for tn in CoarseMeshTextureNames:
|
# for tn in CoarseMeshTextureNames:
|
||||||
# cf.write("\t\"" + dummyWithCoarseMesh + "/" + tn + ".tga\", \n")
|
# cf.write("\t\"" + dummyWithCoarseMesh + "/" + tn + ".tga\", \n")
|
||||||
# cf.write("};\n")
|
# cf.write("};\n")
|
||||||
# cf.close()
|
# cf.close()
|
||||||
# subprocess.call([ BuildCoarseMesh, "confdummy_generated.cfg" ])
|
# subprocess.call([ BuildCoarseMesh, "confdummy_generated.cfg" ])
|
||||||
# os.remove("confdummy_generated.cfg")
|
# os.remove("confdummy_generated.cfg")
|
||||||
# for tn in CoarseMeshTextureNames:
|
# for tn in CoarseMeshTextureNames:
|
||||||
# subprocess.call([ TgaToDds, dummyWithCoarseMesh + "/" + tn + ".tga", "-o", dummyWithCoarseMeshBuilded + "/" + tn + ".dds", "-a", "5" ])
|
# subprocess.call([ TgaToDds, dummyWithCoarseMesh + "/" + tn + ".tga", "-o", dummyWithCoarseMeshBuilded + "/" + tn + ".dds", "-a", "5" ])
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,63 +1,63 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install dummy
|
# \brief Install dummy
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install dummy
|
# Install dummy
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install dummy")
|
printLog(log, "--- Install dummy")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
#installPath = InstallDirectory + "/" + DummyInstallDirectory
|
#installPath = InstallDirectory + "/" + DummyInstallDirectory
|
||||||
#mkPath(log, installPath)
|
#mkPath(log, installPath)
|
||||||
|
|
||||||
printLog(log, ">>> Install dummy <<<")
|
printLog(log, ">>> Install dummy <<<")
|
||||||
#mkPath(log, ExportBuildDirectory + "/" + DummyExportDirectory)
|
#mkPath(log, ExportBuildDirectory + "/" + DummyExportDirectory)
|
||||||
#copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + DummyExportDirectory, installPath, ".dummy")
|
#copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + DummyExportDirectory, installPath, ".dummy")
|
||||||
#mkPath(log, ExportBuildDirectory + "/" + DummyWithCoarseMeshBuildDirectory)
|
#mkPath(log, ExportBuildDirectory + "/" + DummyWithCoarseMeshBuildDirectory)
|
||||||
#copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + DummyWithCoarseMeshBuildDirectory, installPath, ".dummy")
|
#copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + DummyWithCoarseMeshBuildDirectory, installPath, ".dummy")
|
||||||
#copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + DummyWithCoarseMeshBuildDirectory, installPath, ".dds")
|
#copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + DummyWithCoarseMeshBuildDirectory, installPath, ".dds")
|
||||||
|
|
||||||
#mkPath(log, ExportBuildDirectory + "/" + DummyAnimExportDirectory)
|
#mkPath(log, ExportBuildDirectory + "/" + DummyAnimExportDirectory)
|
||||||
#copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + DummyAnimExportDirectory, installPath, ".anim")
|
#copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + DummyAnimExportDirectory, installPath, ".anim")
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,98 +1,98 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief setup ai_wmap
|
# \brief setup ai_wmap
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup ai_wmap
|
# Setup ai_wmap
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup ai_wmap")
|
printLog(log, "--- Setup ai_wmap")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + RbankOutputBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + RbankOutputBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + AiWmapBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + AiWmapBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + AiWmapBuildTagDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + AiWmapBuildTagDirectory)
|
||||||
|
|
||||||
# Setup lookup directories
|
# Setup lookup directories
|
||||||
printLog(log, ">>> Setup lookup directories <<<")
|
printLog(log, ">>> Setup lookup directories <<<")
|
||||||
for dir in IgLookupDirectories:
|
for dir in IgLookupDirectories:
|
||||||
mkPath(log, ExportBuildDirectory + "/" + dir)
|
mkPath(log, ExportBuildDirectory + "/" + dir)
|
||||||
for dir in PacsPrimLookupDirectories:
|
for dir in PacsPrimLookupDirectories:
|
||||||
mkPath(log, ExportBuildDirectory + "/" + dir)
|
mkPath(log, ExportBuildDirectory + "/" + dir)
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup install directories <<<")
|
printLog(log, ">>> Setup install directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + AiWmapInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + AiWmapInstallDirectory)
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup configuration <<<")
|
printLog(log, ">>> Setup configuration <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + AiWmapInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + AiWmapInstallDirectory)
|
||||||
mkPath(log, ActiveProjectDirectory + "/generated")
|
mkPath(log, ActiveProjectDirectory + "/generated")
|
||||||
cfg = open(ActiveProjectDirectory + "/generated/ai_build_wmap.cfg", "w")
|
cfg = open(ActiveProjectDirectory + "/generated/ai_build_wmap.cfg", "w")
|
||||||
cfg.write("\n")
|
cfg.write("\n")
|
||||||
cfg.write("// AI BUILD WMAP CONFIGURATION\n")
|
cfg.write("// AI BUILD WMAP CONFIGURATION\n")
|
||||||
cfg.write("\n")
|
cfg.write("\n")
|
||||||
cfg.write("Paths = {\n")
|
cfg.write("Paths = {\n")
|
||||||
for dir in IgLookupDirectories:
|
for dir in IgLookupDirectories:
|
||||||
cfg.write("\t\"" + ExportBuildDirectory + "/" + dir + "\", \n")
|
cfg.write("\t\"" + ExportBuildDirectory + "/" + dir + "\", \n")
|
||||||
cfg.write("\t\"" + ExportBuildDirectory + "/" + RbankOutputBuildDirectory + "\", \n")
|
cfg.write("\t\"" + ExportBuildDirectory + "/" + RbankOutputBuildDirectory + "\", \n")
|
||||||
cfg.write("\t\"" + LeveldesignDirectory + "\", \n")
|
cfg.write("\t\"" + LeveldesignDirectory + "\", \n")
|
||||||
cfg.write("};\n")
|
cfg.write("};\n")
|
||||||
cfg.write("\n")
|
cfg.write("\n")
|
||||||
cfg.write("NoRecursePaths = { };\n")
|
cfg.write("NoRecursePaths = { };\n")
|
||||||
cfg.write("\n")
|
cfg.write("\n")
|
||||||
cfg.write("PacsPrimPaths = {\n")
|
cfg.write("PacsPrimPaths = {\n")
|
||||||
for dir in PacsPrimLookupDirectories:
|
for dir in PacsPrimLookupDirectories:
|
||||||
cfg.write("\t\"" + ExportBuildDirectory + "/" + dir + "\", \n")
|
cfg.write("\t\"" + ExportBuildDirectory + "/" + dir + "\", \n")
|
||||||
cfg.write("};\n")
|
cfg.write("};\n")
|
||||||
cfg.write("\n")
|
cfg.write("\n")
|
||||||
cfg.write("OutputPath = \"" + ExportBuildDirectory + "/" + AiWmapBuildDirectory + "\";\n")
|
cfg.write("OutputPath = \"" + ExportBuildDirectory + "/" + AiWmapBuildDirectory + "\";\n")
|
||||||
cfg.write("\n")
|
cfg.write("\n")
|
||||||
cfg.write("Commands = {\n")
|
cfg.write("Commands = {\n")
|
||||||
cfg.write("\t\"Verbose " + str(AiWmapVerbose) + "\", \n")
|
cfg.write("\t\"Verbose " + str(AiWmapVerbose) + "\", \n")
|
||||||
for startPoint in AiWmapStartPoints:
|
for startPoint in AiWmapStartPoints:
|
||||||
cfg.write("\t\"setStartPoint " + startPoint + "\", \n")
|
cfg.write("\t\"setStartPoint " + startPoint + "\", \n")
|
||||||
cfg.write("};\n")
|
cfg.write("};\n")
|
||||||
cfg.write("\n")
|
cfg.write("\n")
|
||||||
cfg.close()
|
cfg.close()
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,49 +1,49 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export ai_wmap
|
# \brief Export ai_wmap
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export ai_wmap
|
# Export ai_wmap
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export ai_wmap")
|
printLog(log, "--- Export ai_wmap")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,57 +1,57 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install ai_wmap
|
# \brief Install ai_wmap
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install ai_wmap
|
# Install ai_wmap
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install ai_wmap")
|
printLog(log, "--- Install ai_wmap")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
installPath = InstallDirectory + "/" + AiWmapInstallDirectory
|
installPath = InstallDirectory + "/" + AiWmapInstallDirectory
|
||||||
mkPath(log, installPath)
|
mkPath(log, installPath)
|
||||||
|
|
||||||
printLog(log, ">>> Install ai_wmap <<<")
|
printLog(log, ">>> Install ai_wmap <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + AiWmapBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + AiWmapBuildDirectory)
|
||||||
copyFilesNoTreeIfNeeded(log, ExportBuildDirectory + "/" + AiWmapBuildDirectory, installPath)
|
copyFilesNoTreeIfNeeded(log, ExportBuildDirectory + "/" + AiWmapBuildDirectory, installPath)
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,66 +1,66 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief Setup anim
|
# \brief Setup anim
|
||||||
# \date 2009-03-10 14:56GMT
|
# \date 2009-03-10 14:56GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup anim
|
# Setup anim
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup anim")
|
printLog(log, "--- Setup anim")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dir in AnimSourceDirectories:
|
for dir in AnimSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + AnimExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + AnimExportDirectory)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + AnimBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + AnimBuildDirectory)
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + AnimInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + AnimInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,139 +1,139 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# #################################################################
|
# #################################################################
|
||||||
# ## WARNING : this is a generated file, don't change it !
|
# ## WARNING : this is a generated file, don't change it !
|
||||||
# #################################################################
|
# #################################################################
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export anim
|
# \brief Export anim
|
||||||
# \date 2015-01-06-16-31-GMT
|
# \date 2015-01-06-16-31-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export anim
|
# Export anim
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
if os.path.isfile("temp_log.log"):
|
if os.path.isfile("temp_log.log"):
|
||||||
os.remove("temp_log.log")
|
os.remove("temp_log.log")
|
||||||
log = open("temp_log.log", "w")
|
log = open("temp_log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export anim")
|
printLog(log, "--- Export anim")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
# ...
|
# ...
|
||||||
|
|
||||||
# Export anim 3dsmax
|
# Export anim 3dsmax
|
||||||
if MaxAvailable:
|
if MaxAvailable:
|
||||||
# Find tools
|
# Find tools
|
||||||
Max = findMax(log, MaxDirectory, MaxExecutable)
|
Max = findMax(log, MaxDirectory, MaxExecutable)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Export anim 3dsmax <<<")
|
printLog(log, ">>> Export anim 3dsmax <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + AnimExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + AnimExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + AnimTagExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + AnimTagExportDirectory)
|
||||||
for dir in AnimSourceDirectories:
|
for dir in AnimSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + dir, ".max", ExportBuildDirectory + "/" + AnimTagExportDirectory, ".max.tag")):
|
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + dir, ".max", ExportBuildDirectory + "/" + AnimTagExportDirectory, ".max.tag")):
|
||||||
scriptSrc = "maxscript/anim_export.ms"
|
scriptSrc = "maxscript/anim_export.ms"
|
||||||
scriptDst = MaxUserDirectory + "/scripts/anim_export.ms"
|
scriptDst = MaxUserDirectory + "/scripts/anim_export.ms"
|
||||||
outputLogfile = ScriptDirectory + "/processes/anim/log.log"
|
outputLogfile = ScriptDirectory + "/processes/anim/log.log"
|
||||||
outputDirectory = ExportBuildDirectory + "/" + AnimExportDirectory
|
outputDirectory = ExportBuildDirectory + "/" + AnimExportDirectory
|
||||||
tagDirectory = ExportBuildDirectory + "/" + AnimTagExportDirectory
|
tagDirectory = ExportBuildDirectory + "/" + AnimTagExportDirectory
|
||||||
maxSourceDir = DatabaseDirectory + "/" + dir
|
maxSourceDir = DatabaseDirectory + "/" + dir
|
||||||
maxRunningTagFile = tagDirectory + "/max_running.tag"
|
maxRunningTagFile = tagDirectory + "/max_running.tag"
|
||||||
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
||||||
tagLen = len(tagList)
|
tagLen = len(tagList)
|
||||||
if os.path.isfile(scriptDst):
|
if os.path.isfile(scriptDst):
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
tagDiff = 1
|
tagDiff = 1
|
||||||
sSrc = open(scriptSrc, "r")
|
sSrc = open(scriptSrc, "r")
|
||||||
sDst = open(scriptDst, "w")
|
sDst = open(scriptDst, "w")
|
||||||
for line in sSrc:
|
for line in sSrc:
|
||||||
newline = line.replace("%OutputLogfile%", outputLogfile)
|
newline = line.replace("%OutputLogfile%", outputLogfile)
|
||||||
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
||||||
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
||||||
newline = newline.replace("%TagDirectory%", tagDirectory)
|
newline = newline.replace("%TagDirectory%", tagDirectory)
|
||||||
sDst.write(newline)
|
sDst.write(newline)
|
||||||
sSrc.close()
|
sSrc.close()
|
||||||
sDst.close()
|
sDst.close()
|
||||||
zeroRetryLimit = 3
|
zeroRetryLimit = 3
|
||||||
while tagDiff > 0:
|
while tagDiff > 0:
|
||||||
mrt = open(maxRunningTagFile, "w")
|
mrt = open(maxRunningTagFile, "w")
|
||||||
mrt.write("moe-moe-kyun")
|
mrt.write("moe-moe-kyun")
|
||||||
mrt.close()
|
mrt.close()
|
||||||
printLog(log, "MAXSCRIPT " + scriptDst)
|
printLog(log, "MAXSCRIPT " + scriptDst)
|
||||||
subprocess.call([ Max, "-U", "MAXScript", "anim_export.ms", "-q", "-mi", "-mip" ])
|
subprocess.call([ Max, "-U", "MAXScript", "anim_export.ms", "-q", "-mi", "-mip" ])
|
||||||
if os.path.exists(outputLogfile):
|
if os.path.exists(outputLogfile):
|
||||||
try:
|
try:
|
||||||
lSrc = open(outputLogfile, "r")
|
lSrc = open(outputLogfile, "r")
|
||||||
for line in lSrc:
|
for line in lSrc:
|
||||||
lineStrip = line.strip()
|
lineStrip = line.strip()
|
||||||
if (len(lineStrip) > 0):
|
if (len(lineStrip) > 0):
|
||||||
printLog(log, lineStrip)
|
printLog(log, lineStrip)
|
||||||
lSrc.close()
|
lSrc.close()
|
||||||
os.remove(outputLogfile)
|
os.remove(outputLogfile)
|
||||||
except Exception:
|
except Exception:
|
||||||
printLog(log, "ERROR Failed to read 3dsmax log")
|
printLog(log, "ERROR Failed to read 3dsmax log")
|
||||||
else:
|
else:
|
||||||
printLog(log, "WARNING No 3dsmax log")
|
printLog(log, "WARNING No 3dsmax log")
|
||||||
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
||||||
newTagLen = len(tagList)
|
newTagLen = len(tagList)
|
||||||
tagDiff = newTagLen - tagLen
|
tagDiff = newTagLen - tagLen
|
||||||
tagLen = newTagLen
|
tagLen = newTagLen
|
||||||
addTagDiff = 0
|
addTagDiff = 0
|
||||||
if os.path.exists(maxRunningTagFile):
|
if os.path.exists(maxRunningTagFile):
|
||||||
printLog(log, "FAIL 3ds Max crashed and/or file export failed!")
|
printLog(log, "FAIL 3ds Max crashed and/or file export failed!")
|
||||||
if tagDiff == 0:
|
if tagDiff == 0:
|
||||||
if zeroRetryLimit > 0:
|
if zeroRetryLimit > 0:
|
||||||
zeroRetryLimit = zeroRetryLimit - 1
|
zeroRetryLimit = zeroRetryLimit - 1
|
||||||
addTagDiff = 1
|
addTagDiff = 1
|
||||||
else:
|
else:
|
||||||
printLog(log, "FAIL Retry limit reached!")
|
printLog(log, "FAIL Retry limit reached!")
|
||||||
else:
|
else:
|
||||||
addTagDiff = 1
|
addTagDiff = 1
|
||||||
os.remove(maxRunningTagFile)
|
os.remove(maxRunningTagFile)
|
||||||
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
||||||
tagDiff += addTagDiff
|
tagDiff += addTagDiff
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
shutil.move("temp_log.log", "log.log")
|
shutil.move("temp_log.log", "log.log")
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,70 +1,70 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build anim
|
# \brief Build anim
|
||||||
# \date 2009-03-10 13:13GMT
|
# \date 2009-03-10 13:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build anim
|
# Build anim
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build anim")
|
printLog(log, "--- Build anim")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
AnimBuilder = findTool(log, ToolDirectories, AnimBuilderTool, ToolSuffix)
|
AnimBuilder = findTool(log, ToolDirectories, AnimBuilderTool, ToolSuffix)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# For each anim directory
|
# For each anim directory
|
||||||
printLog(log, ">>> Build anim <<<")
|
printLog(log, ">>> Build anim <<<")
|
||||||
if AnimBuilder == "":
|
if AnimBuilder == "":
|
||||||
toolLogFail(log, AnimBuilderTool, ToolSuffix)
|
toolLogFail(log, AnimBuilderTool, ToolSuffix)
|
||||||
else:
|
else:
|
||||||
srcDir = ExportBuildDirectory + "/" + AnimExportDirectory
|
srcDir = ExportBuildDirectory + "/" + AnimExportDirectory
|
||||||
mkPath(log, srcDir)
|
mkPath(log, srcDir)
|
||||||
destDir = ExportBuildDirectory + "/" + AnimBuildDirectory
|
destDir = ExportBuildDirectory + "/" + AnimBuildDirectory
|
||||||
mkPath(log, destDir)
|
mkPath(log, destDir)
|
||||||
if DoOptimizeAnimations:
|
if DoOptimizeAnimations:
|
||||||
printLog(log, ">>> Optimizing animations <<<")
|
printLog(log, ">>> Optimizing animations <<<")
|
||||||
subprocess.call([ AnimBuilder, srcDir, destDir, ActiveProjectDirectory + "/anim_builder.cfg" ])
|
subprocess.call([ AnimBuilder, srcDir, destDir, ActiveProjectDirectory + "/anim_builder.cfg" ])
|
||||||
else:
|
else:
|
||||||
printLog(log, ">>> Not optimizing animations <<<")
|
printLog(log, ">>> Not optimizing animations <<<")
|
||||||
copyFilesNoTreeIfNeeded(log, srcDir, destDir)
|
copyFilesNoTreeIfNeeded(log, srcDir, destDir)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,57 +1,57 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install anim
|
# \brief Install anim
|
||||||
# \date 2009-03-10 13:13GMT
|
# \date 2009-03-10 13:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install anim
|
# Install anim
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install anim")
|
printLog(log, "--- Install anim")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Install anim <<<")
|
printLog(log, ">>> Install anim <<<")
|
||||||
srcDir = ExportBuildDirectory + "/" + AnimBuildDirectory
|
srcDir = ExportBuildDirectory + "/" + AnimBuildDirectory
|
||||||
mkPath(log, srcDir)
|
mkPath(log, srcDir)
|
||||||
destDir = InstallDirectory + "/" + AnimInstallDirectory
|
destDir = InstallDirectory + "/" + AnimInstallDirectory
|
||||||
mkPath(log, destDir)
|
mkPath(log, destDir)
|
||||||
copyFilesNoTreeIfNeeded(log, srcDir, destDir)
|
copyFilesNoTreeIfNeeded(log, srcDir, destDir)
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,49 +1,49 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export cartographer
|
# \brief Export cartographer
|
||||||
# \date 2014-09-13 13:32GMT
|
# \date 2014-09-13 13:32GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export cartographer
|
# Export cartographer
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2014 Jan BOON
|
# Copyright (C) 2014 Jan BOON
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export cartographer")
|
printLog(log, "--- Export cartographer")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,62 +1,87 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build cartographer
|
# \brief Build cartographer
|
||||||
# \date 2014-09-13 13:32GMT
|
# \date 2014-09-13 13:32GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build cartographer
|
# Build cartographer
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2014 Jan BOON
|
# Copyright (C) 2014 Jan BOON
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build cartographer")
|
printLog(log, "--- Build cartographer")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
R2IslandsTextures = findTool(log, ToolDirectories, R2IslandsTexturesTool, ToolSuffix)
|
R2IslandsTextures = findTool(log, ToolDirectories, R2IslandsTexturesTool, ToolSuffix)
|
||||||
|
TgaToDds = findTool(log, ToolDirectories, TgaToDdsTool, ToolSuffix)
|
||||||
if R2IslandsTextures == "":
|
|
||||||
toolLogFail(log, R2IslandsTexturesTool, ToolSuffix)
|
if R2IslandsTextures == "":
|
||||||
else:
|
toolLogFail(log, R2IslandsTexturesTool, ToolSuffix)
|
||||||
printLog(log, ">>> Copy island_screenshots.cfg <<<")
|
else:
|
||||||
cfgPath = ActiveProjectDirectory + "/generated/island_screenshots.cfg"
|
printLog(log, ">>> Copy island_screenshots.cfg <<<")
|
||||||
shutil.copy(cfgPath, "island_screenshots.cfg")
|
cfgPath = ActiveProjectDirectory + "/generated/island_screenshots.cfg"
|
||||||
printLog(log, ">>> Build cartographer <<<")
|
shutil.copy(cfgPath, "island_screenshots.cfg")
|
||||||
subprocess.call([ R2IslandsTextures ])
|
printLog(log, ">>> Build cartographer <<<")
|
||||||
printLog(log, "")
|
mkPath(log, ExportBuildDirectory + "/" + CartographerBuildDirectory)
|
||||||
|
subprocess.call([ R2IslandsTextures ])
|
||||||
log.close()
|
printLog(log, "")
|
||||||
|
|
||||||
|
printLog(log, ">>> Compress cartographer maps to DDS <<<")
|
||||||
# end of file
|
if TgaToDds == "":
|
||||||
|
toolLogFail(log, TgaToDdsTool, ToolSuffix)
|
||||||
|
else:
|
||||||
|
destPath = ExportBuildDirectory + "/" + CartographerMapBuildDirectory
|
||||||
|
mkPath(log, destPath)
|
||||||
|
sourcePath = ExportBuildDirectory + "/" + CartographerBuildDirectory
|
||||||
|
mkPath(log, sourcePath)
|
||||||
|
files = os.listdir(sourcePath)
|
||||||
|
len_tga_png = len(".tga")
|
||||||
|
len_dds = len(".dds")
|
||||||
|
for fileName in files:
|
||||||
|
if isLegalFileName(fileName):
|
||||||
|
sourceFile = sourcePath + "/" + fileName
|
||||||
|
if os.path.isfile(sourceFile):
|
||||||
|
if (fileName[-len_tga_png:].lower() == ".tga") or (fileName[-len_tga_png:].lower() == ".png"):
|
||||||
|
destFile = destPath + "/" + os.path.basename(fileName)[0:-len_tga_png] + ".dds"
|
||||||
|
if needUpdateLogRemoveDest(log, sourceFile, destFile):
|
||||||
|
subprocess.call([ TgaToDds, sourceFile, "-o", destFile, "-m" ])
|
||||||
|
elif not os.path.isdir(sourceFile):
|
||||||
|
printLog(log, "FAIL ?! file not dir or file ?! " + sourceFile)
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
|
# end of file
|
||||||
|
@ -1,57 +1,66 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install cartographer
|
# \brief Install cartographer
|
||||||
# \date 2014-09-13 13:32GMT
|
# \date 2014-09-13 13:32GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install cartographer
|
# Install cartographer
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2014 Jan BOON
|
# Copyright (C) 2014 Jan BOON
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install cartographer")
|
printLog(log, "--- Install cartographer")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
installPath = InstallDirectory + "/" + CartographerInstallDirectory
|
|
||||||
mkPath(log, installPath)
|
installPath = InstallDirectory + "/" + CartographerInstallDirectory
|
||||||
|
islandsInstallPath = InstallDirectory + "/" + IslandsInstallDirectory
|
||||||
printLog(log, ">>> Install cartographer <<<")
|
|
||||||
mkPath(log, ExportBuildDirectory + "/" + CartographerBuildDirectory)
|
|
||||||
copyFilesNoTreeIfNeeded(log, ExportBuildDirectory + "/" + CartographerBuildDirectory, installPath)
|
printLog(log, ">>> Install cartographer <<<")
|
||||||
|
|
||||||
printLog(log, "")
|
mkPath(log, ExportBuildDirectory + "/" + CartographerMapBuildDirectory)
|
||||||
log.close()
|
mkPath(log, installPath)
|
||||||
|
copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + CartographerMapBuildDirectory, installPath, ".dds")
|
||||||
|
|
||||||
# end of file
|
mkPath(log, ExportBuildDirectory + "/" + CartographerBuildDirectory)
|
||||||
|
mkPath(log, islandsInstallPath)
|
||||||
|
copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + CartographerBuildDirectory, islandsInstallPath, ".xml")
|
||||||
|
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
|
# end of file
|
||||||
|
@ -1,65 +1,65 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief Setup cegui
|
# \brief Setup cegui
|
||||||
# \date 2009-03-14-17-46-GMT
|
# \date 2009-03-14-17-46-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Setup cegui
|
# Setup cegui
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup cegui")
|
printLog(log, "--- Setup cegui")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dir in CeguiImagesetSourceDirectories:
|
for dir in CeguiImagesetSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + CeguiImagesetExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + CeguiImagesetExportDirectory)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + CeguiImagesetBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + CeguiImagesetBuildDirectory)
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + CeguiImagesetInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + CeguiImagesetInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,67 +1,67 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export cegui
|
# \brief Export cegui
|
||||||
# \date 2009-03-14-17-46-GMT
|
# \date 2009-03-14-17-46-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Export cegui
|
# Export cegui
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export cegui")
|
printLog(log, "--- Export cegui")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# For each cegui imageset directory
|
# For each cegui imageset directory
|
||||||
printLog(log, ">>> Export cegui imagesets <<<")
|
printLog(log, ">>> Export cegui imagesets <<<")
|
||||||
destDir = ExportBuildDirectory + "/" + CeguiImagesetExportDirectory
|
destDir = ExportBuildDirectory + "/" + CeguiImagesetExportDirectory
|
||||||
mkPath(log, destDir)
|
mkPath(log, destDir)
|
||||||
for dir in CeguiImagesetSourceDirectories:
|
for dir in CeguiImagesetSourceDirectories:
|
||||||
srcDir = DatabaseDirectory + "/" + dir
|
srcDir = DatabaseDirectory + "/" + dir
|
||||||
mkPath(log, srcDir)
|
mkPath(log, srcDir)
|
||||||
imagesets = findFiles(log, srcDir, "", ".imageset")
|
imagesets = findFiles(log, srcDir, "", ".imageset")
|
||||||
if (len(imagesets) != 1):
|
if (len(imagesets) != 1):
|
||||||
printLog(log, "FAIL Cannot find *.imageset, folder must contain at least one and only one imageset xml file")
|
printLog(log, "FAIL Cannot find *.imageset, folder must contain at least one and only one imageset xml file")
|
||||||
else:
|
else:
|
||||||
niouname = dir.replace("/", "_")
|
niouname = dir.replace("/", "_")
|
||||||
newpath = destDir + "/" + niouname
|
newpath = destDir + "/" + niouname
|
||||||
mkPath(log, newpath)
|
mkPath(log, newpath)
|
||||||
copyFileIfNeeded(log, srcDir + "/" + imagesets[0], newpath + ".imageset")
|
copyFileIfNeeded(log, srcDir + "/" + imagesets[0], newpath + ".imageset")
|
||||||
copyFilesExtNoTreeIfNeeded(log, srcDir, newpath, ".tga")
|
copyFilesExtNoTreeIfNeeded(log, srcDir, newpath, ".tga")
|
||||||
copyFilesExtNoTreeIfNeeded(log, srcDir, newpath, ".png")
|
copyFilesExtNoTreeIfNeeded(log, srcDir, newpath, ".png")
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,67 +1,67 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build cegui
|
# \brief Build cegui
|
||||||
# \date 2009-03-14-17-46-GMT
|
# \date 2009-03-14-17-46-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Build cegui
|
# Build cegui
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build cegui")
|
printLog(log, "--- Build cegui")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
BuildImageset = findTool(log, ToolDirectories, BuildImagesetTool, ToolSuffix)
|
BuildImageset = findTool(log, ToolDirectories, BuildImagesetTool, ToolSuffix)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# For each cegui imageset directory
|
# For each cegui imageset directory
|
||||||
printLog(log, ">>> Build cegui imagesets <<<")
|
printLog(log, ">>> Build cegui imagesets <<<")
|
||||||
if BuildImageset == "":
|
if BuildImageset == "":
|
||||||
toolLogFail(log, BuildImagesetTool, ToolSuffix)
|
toolLogFail(log, BuildImagesetTool, ToolSuffix)
|
||||||
else:
|
else:
|
||||||
srcDir = ExportBuildDirectory + "/" + CeguiImagesetExportDirectory
|
srcDir = ExportBuildDirectory + "/" + CeguiImagesetExportDirectory
|
||||||
mkPath(log, srcDir)
|
mkPath(log, srcDir)
|
||||||
destDir = ExportBuildDirectory + "/" + CeguiImagesetBuildDirectory
|
destDir = ExportBuildDirectory + "/" + CeguiImagesetBuildDirectory
|
||||||
mkPath(log, destDir)
|
mkPath(log, destDir)
|
||||||
for dir in os.listdir(srcDir):
|
for dir in os.listdir(srcDir):
|
||||||
if (os.path.isdir(srcDir + "/" + dir)) and dir != ".svn" and dir != "*.*":
|
if (os.path.isdir(srcDir + "/" + dir)) and dir != ".svn" and dir != "*.*":
|
||||||
mkPath(log, srcDir + "/" + dir)
|
mkPath(log, srcDir + "/" + dir)
|
||||||
subprocess.call([ BuildImageset, destDir + "/" + dir + ".tga", srcDir + "/" + dir ])
|
subprocess.call([ BuildImageset, destDir + "/" + dir + ".tga", srcDir + "/" + dir ])
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,56 +1,56 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install cegui
|
# \brief Install cegui
|
||||||
# \date 2009-03-14-17-46-GMT
|
# \date 2009-03-14-17-46-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Install cegui
|
# Install cegui
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install cegui")
|
printLog(log, "--- Install cegui")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Install cegui imagesets <<<")
|
printLog(log, ">>> Install cegui imagesets <<<")
|
||||||
srcDir = ExportBuildDirectory + "/" + CeguiImagesetBuildDirectory
|
srcDir = ExportBuildDirectory + "/" + CeguiImagesetBuildDirectory
|
||||||
mkPath(log, srcDir)
|
mkPath(log, srcDir)
|
||||||
destDir = InstallDirectory + "/" + CeguiImagesetInstallDirectory
|
destDir = InstallDirectory + "/" + CeguiImagesetInstallDirectory
|
||||||
mkPath(log, destDir)
|
mkPath(log, destDir)
|
||||||
copyFilesNoTreeIfNeeded(log, srcDir, destDir)
|
copyFilesNoTreeIfNeeded(log, srcDir, destDir)
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,87 +1,87 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief Setup clodbank
|
# \brief Setup clodbank
|
||||||
# \date 2009-03-10 14:56GMT
|
# \date 2009-03-10 14:56GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup clodbank
|
# Setup clodbank
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup clodbank")
|
printLog(log, "--- Setup clodbank")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dir in ClodSourceDirectories:
|
for dir in ClodSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + ClodTagExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + ClodTagExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + ClodExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + ClodExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + SkelExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + SkelExportDirectory)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + ClodBankBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + ClodBankBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + AnimBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + AnimBuildDirectory)
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + ShapeInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + ShapeInstallDirectory)
|
||||||
|
|
||||||
# Setup configuration files
|
# Setup configuration files
|
||||||
printLog(log, ">>> Setup configuration files <<<")
|
printLog(log, ">>> Setup configuration files <<<")
|
||||||
mkPath(log, ActiveProjectDirectory + "/generated")
|
mkPath(log, ActiveProjectDirectory + "/generated")
|
||||||
cfgOut = open(ActiveProjectDirectory + "/generated/clod_paths.cfg", "w")
|
cfgOut = open(ActiveProjectDirectory + "/generated/clod_paths.cfg", "w")
|
||||||
cfgOut.write("\n")
|
cfgOut.write("\n")
|
||||||
cfgOut.write("// The search pathes, look in the current process\n")
|
cfgOut.write("// The search pathes, look in the current process\n")
|
||||||
cfgOut.write("search_pathes = \n")
|
cfgOut.write("search_pathes = \n")
|
||||||
cfgOut.write("{\n")
|
cfgOut.write("{\n")
|
||||||
cfgOut.write("\t\"" + ExportBuildDirectory + "/" + ClodExportDirectory + "\", \n")
|
cfgOut.write("\t\"" + ExportBuildDirectory + "/" + ClodExportDirectory + "\", \n")
|
||||||
cfgOut.write("\t\"" + ExportBuildDirectory + "/" + SkelExportDirectory + "\", \n")
|
cfgOut.write("\t\"" + ExportBuildDirectory + "/" + SkelExportDirectory + "\", \n")
|
||||||
cfgOut.write("\t\"" + ExportBuildDirectory + "/" + AnimBuildDirectory + "\", \n")
|
cfgOut.write("\t\"" + ExportBuildDirectory + "/" + AnimBuildDirectory + "\", \n")
|
||||||
cfgOut.write("\t\"" + ExportBuildDirectory + "/" + ShapeOptimizedBuildDirectory + "\", \n")
|
cfgOut.write("\t\"" + ExportBuildDirectory + "/" + ShapeOptimizedBuildDirectory + "\", \n")
|
||||||
cfgOut.write("\t\"" + ExportBuildDirectory + "/" + ShapeWithCoarseMeshBuildDirectory + "\", \n")
|
cfgOut.write("\t\"" + ExportBuildDirectory + "/" + ShapeWithCoarseMeshBuildDirectory + "\", \n")
|
||||||
cfgOut.write("};\n")
|
cfgOut.write("};\n")
|
||||||
cfgOut.write("\n")
|
cfgOut.write("\n")
|
||||||
cfgOut.close()
|
cfgOut.close()
|
||||||
|
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,139 +1,139 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# #################################################################
|
# #################################################################
|
||||||
# ## WARNING : this is a generated file, don't change it !
|
# ## WARNING : this is a generated file, don't change it !
|
||||||
# #################################################################
|
# #################################################################
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export clodbank
|
# \brief Export clodbank
|
||||||
# \date 2015-01-06-16-31-GMT
|
# \date 2015-01-06-16-31-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export clodbank
|
# Export clodbank
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
if os.path.isfile("temp_log.log"):
|
if os.path.isfile("temp_log.log"):
|
||||||
os.remove("temp_log.log")
|
os.remove("temp_log.log")
|
||||||
log = open("temp_log.log", "w")
|
log = open("temp_log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export clodbank")
|
printLog(log, "--- Export clodbank")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
# ...
|
# ...
|
||||||
|
|
||||||
# Export clodbank 3dsmax
|
# Export clodbank 3dsmax
|
||||||
if MaxAvailable:
|
if MaxAvailable:
|
||||||
# Find tools
|
# Find tools
|
||||||
Max = findMax(log, MaxDirectory, MaxExecutable)
|
Max = findMax(log, MaxDirectory, MaxExecutable)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Export clodbank 3dsmax <<<")
|
printLog(log, ">>> Export clodbank 3dsmax <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + ClodExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + ClodExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + ClodTagExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + ClodTagExportDirectory)
|
||||||
for dir in ClodSourceDirectories:
|
for dir in ClodSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + dir, ".max", ExportBuildDirectory + "/" + ClodTagExportDirectory, ".max.tag")):
|
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + dir, ".max", ExportBuildDirectory + "/" + ClodTagExportDirectory, ".max.tag")):
|
||||||
scriptSrc = "maxscript/clod_export.ms"
|
scriptSrc = "maxscript/clod_export.ms"
|
||||||
scriptDst = MaxUserDirectory + "/scripts/clod_export.ms"
|
scriptDst = MaxUserDirectory + "/scripts/clod_export.ms"
|
||||||
outputLogfile = ScriptDirectory + "/processes/clodbank/log.log"
|
outputLogfile = ScriptDirectory + "/processes/clodbank/log.log"
|
||||||
outputDirectory = ExportBuildDirectory + "/" + ClodExportDirectory
|
outputDirectory = ExportBuildDirectory + "/" + ClodExportDirectory
|
||||||
tagDirectory = ExportBuildDirectory + "/" + ClodTagExportDirectory
|
tagDirectory = ExportBuildDirectory + "/" + ClodTagExportDirectory
|
||||||
maxSourceDir = DatabaseDirectory + "/" + dir
|
maxSourceDir = DatabaseDirectory + "/" + dir
|
||||||
maxRunningTagFile = tagDirectory + "/max_running.tag"
|
maxRunningTagFile = tagDirectory + "/max_running.tag"
|
||||||
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
||||||
tagLen = len(tagList)
|
tagLen = len(tagList)
|
||||||
if os.path.isfile(scriptDst):
|
if os.path.isfile(scriptDst):
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
tagDiff = 1
|
tagDiff = 1
|
||||||
sSrc = open(scriptSrc, "r")
|
sSrc = open(scriptSrc, "r")
|
||||||
sDst = open(scriptDst, "w")
|
sDst = open(scriptDst, "w")
|
||||||
for line in sSrc:
|
for line in sSrc:
|
||||||
newline = line.replace("%OutputLogfile%", outputLogfile)
|
newline = line.replace("%OutputLogfile%", outputLogfile)
|
||||||
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
||||||
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
||||||
newline = newline.replace("%TagDirectory%", tagDirectory)
|
newline = newline.replace("%TagDirectory%", tagDirectory)
|
||||||
sDst.write(newline)
|
sDst.write(newline)
|
||||||
sSrc.close()
|
sSrc.close()
|
||||||
sDst.close()
|
sDst.close()
|
||||||
zeroRetryLimit = 3
|
zeroRetryLimit = 3
|
||||||
while tagDiff > 0:
|
while tagDiff > 0:
|
||||||
mrt = open(maxRunningTagFile, "w")
|
mrt = open(maxRunningTagFile, "w")
|
||||||
mrt.write("moe-moe-kyun")
|
mrt.write("moe-moe-kyun")
|
||||||
mrt.close()
|
mrt.close()
|
||||||
printLog(log, "MAXSCRIPT " + scriptDst)
|
printLog(log, "MAXSCRIPT " + scriptDst)
|
||||||
subprocess.call([ Max, "-U", "MAXScript", "clod_export.ms", "-q", "-mi", "-mip" ])
|
subprocess.call([ Max, "-U", "MAXScript", "clod_export.ms", "-q", "-mi", "-mip" ])
|
||||||
if os.path.exists(outputLogfile):
|
if os.path.exists(outputLogfile):
|
||||||
try:
|
try:
|
||||||
lSrc = open(outputLogfile, "r")
|
lSrc = open(outputLogfile, "r")
|
||||||
for line in lSrc:
|
for line in lSrc:
|
||||||
lineStrip = line.strip()
|
lineStrip = line.strip()
|
||||||
if (len(lineStrip) > 0):
|
if (len(lineStrip) > 0):
|
||||||
printLog(log, lineStrip)
|
printLog(log, lineStrip)
|
||||||
lSrc.close()
|
lSrc.close()
|
||||||
os.remove(outputLogfile)
|
os.remove(outputLogfile)
|
||||||
except Exception:
|
except Exception:
|
||||||
printLog(log, "ERROR Failed to read 3dsmax log")
|
printLog(log, "ERROR Failed to read 3dsmax log")
|
||||||
else:
|
else:
|
||||||
printLog(log, "WARNING No 3dsmax log")
|
printLog(log, "WARNING No 3dsmax log")
|
||||||
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
||||||
newTagLen = len(tagList)
|
newTagLen = len(tagList)
|
||||||
tagDiff = newTagLen - tagLen
|
tagDiff = newTagLen - tagLen
|
||||||
tagLen = newTagLen
|
tagLen = newTagLen
|
||||||
addTagDiff = 0
|
addTagDiff = 0
|
||||||
if os.path.exists(maxRunningTagFile):
|
if os.path.exists(maxRunningTagFile):
|
||||||
printLog(log, "FAIL 3ds Max crashed and/or file export failed!")
|
printLog(log, "FAIL 3ds Max crashed and/or file export failed!")
|
||||||
if tagDiff == 0:
|
if tagDiff == 0:
|
||||||
if zeroRetryLimit > 0:
|
if zeroRetryLimit > 0:
|
||||||
zeroRetryLimit = zeroRetryLimit - 1
|
zeroRetryLimit = zeroRetryLimit - 1
|
||||||
addTagDiff = 1
|
addTagDiff = 1
|
||||||
else:
|
else:
|
||||||
printLog(log, "FAIL Retry limit reached!")
|
printLog(log, "FAIL Retry limit reached!")
|
||||||
else:
|
else:
|
||||||
addTagDiff = 1
|
addTagDiff = 1
|
||||||
os.remove(maxRunningTagFile)
|
os.remove(maxRunningTagFile)
|
||||||
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
||||||
tagDiff += addTagDiff
|
tagDiff += addTagDiff
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
shutil.move("temp_log.log", "log.log")
|
shutil.move("temp_log.log", "log.log")
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,68 +1,68 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build clodbank
|
# \brief Build clodbank
|
||||||
# \date 2009-03-10 13:13GMT
|
# \date 2009-03-10 13:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build clodbank
|
# Build clodbank
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build clodbank")
|
printLog(log, "--- Build clodbank")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
BuildClodBank = findTool(log, ToolDirectories, BuildClodBankTool, ToolSuffix)
|
BuildClodBank = findTool(log, ToolDirectories, BuildClodBankTool, ToolSuffix)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Build clodbank
|
# Build clodbank
|
||||||
printLog(log, ">>> Build clodbank <<<")
|
printLog(log, ">>> Build clodbank <<<")
|
||||||
if BuildClodBank == "":
|
if BuildClodBank == "":
|
||||||
toolLogFail(log, BuildClodBankTool, ToolSuffix)
|
toolLogFail(log, BuildClodBankTool, ToolSuffix)
|
||||||
else:
|
else:
|
||||||
srcDir = ExportBuildDirectory + "/" + ClodExportDirectory
|
srcDir = ExportBuildDirectory + "/" + ClodExportDirectory
|
||||||
mkPath(log, srcDir)
|
mkPath(log, srcDir)
|
||||||
destDir = ExportBuildDirectory + "/" + ClodBankBuildDirectory
|
destDir = ExportBuildDirectory + "/" + ClodBankBuildDirectory
|
||||||
mkPath(log, destDir)
|
mkPath(log, destDir)
|
||||||
mkPath(log, ActiveProjectDirectory + "/generated")
|
mkPath(log, ActiveProjectDirectory + "/generated")
|
||||||
destFile = destDir + "/" + ClodBankFileName
|
destFile = destDir + "/" + ClodBankFileName
|
||||||
configFile = DatabaseDirectory + "/" + ClodConfigFile
|
configFile = DatabaseDirectory + "/" + ClodConfigFile
|
||||||
subprocess.call([ BuildClodBank, ActiveProjectDirectory + "/generated/clod_paths.cfg", configFile, destFile ])
|
subprocess.call([ BuildClodBank, ActiveProjectDirectory + "/generated/clod_paths.cfg", configFile, destFile ])
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,57 +1,57 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install clodbank
|
# \brief Install clodbank
|
||||||
# \date 2009-03-10 13:13GMT
|
# \date 2009-03-10 13:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install clodbank
|
# Install clodbank
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install clodbank")
|
printLog(log, "--- Install clodbank")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Install clodbank <<<")
|
printLog(log, ">>> Install clodbank <<<")
|
||||||
srcDir = ExportBuildDirectory + "/" + ClodBankBuildDirectory
|
srcDir = ExportBuildDirectory + "/" + ClodBankBuildDirectory
|
||||||
mkPath(log, srcDir)
|
mkPath(log, srcDir)
|
||||||
destDir = InstallDirectory + "/" + ShapeInstallDirectory
|
destDir = InstallDirectory + "/" + ShapeInstallDirectory
|
||||||
mkPath(log, destDir)
|
mkPath(log, destDir)
|
||||||
copyFilesNoTreeIfNeeded(log, srcDir, destDir)
|
copyFilesNoTreeIfNeeded(log, srcDir, destDir)
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,76 +1,76 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief setup copy
|
# \brief setup copy
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup copy
|
# Setup copy
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup copy")
|
printLog(log, "--- Setup copy")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dir in CopyDirectSourceDirectories:
|
for dir in CopyDirectSourceDirectories:
|
||||||
mkPath(log, dir)
|
mkPath(log, dir)
|
||||||
for file in CopyDirectSourceFiles:
|
for file in CopyDirectSourceFiles:
|
||||||
mkPath(log, os.path.dirname(file))
|
mkPath(log, os.path.dirname(file))
|
||||||
for dir in CopyLeveldesignSourceDirectories:
|
for dir in CopyLeveldesignSourceDirectories:
|
||||||
mkPath(log, LeveldesignDirectory + "/" + dir)
|
mkPath(log, LeveldesignDirectory + "/" + dir)
|
||||||
for file in CopyLeveldesignSourceFiles:
|
for file in CopyLeveldesignSourceFiles:
|
||||||
mkPath(log, os.path.dirname(LeveldesignDirectory + "/" + file))
|
mkPath(log, os.path.dirname(LeveldesignDirectory + "/" + file))
|
||||||
for dir in CopyLeveldesignWorldSourceDirectories:
|
for dir in CopyLeveldesignWorldSourceDirectories:
|
||||||
mkPath(log, LeveldesignWorldDirectory + "/" + dir)
|
mkPath(log, LeveldesignWorldDirectory + "/" + dir)
|
||||||
for file in CopyLeveldesignWorldSourceFiles:
|
for file in CopyLeveldesignWorldSourceFiles:
|
||||||
mkPath(log, os.path.dirname(LeveldesignWorldDirectory + "/" + file))
|
mkPath(log, os.path.dirname(LeveldesignWorldDirectory + "/" + file))
|
||||||
for dir in CopyLeveldesignDfnSourceDirectories:
|
for dir in CopyLeveldesignDfnSourceDirectories:
|
||||||
mkPath(log, LeveldesignDfnDirectory + "/" + dir)
|
mkPath(log, LeveldesignDfnDirectory + "/" + dir)
|
||||||
for file in CopyLeveldesignDfnSourceFiles:
|
for file in CopyLeveldesignDfnSourceFiles:
|
||||||
mkPath(log, os.path.dirname(LeveldesignDfnDirectory + "/" + file))
|
mkPath(log, os.path.dirname(LeveldesignDfnDirectory + "/" + file))
|
||||||
for dir in CopyDatabaseSourceDirectories:
|
for dir in CopyDatabaseSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
for file in CopyDatabaseSourceFiles:
|
for file in CopyDatabaseSourceFiles:
|
||||||
mkPath(log, os.path.dirname(DatabaseDirectory + "/" + file))
|
mkPath(log, os.path.dirname(DatabaseDirectory + "/" + file))
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + CopyInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + CopyInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,49 +1,49 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export copy
|
# \brief Export copy
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export copy
|
# Export copy
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export copy")
|
printLog(log, "--- Export copy")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,49 +1,49 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build copy
|
# \brief Build copy
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build copy
|
# Build copy
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build copy")
|
printLog(log, "--- Build copy")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,85 +1,85 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install copy
|
# \brief Install copy
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install copy
|
# Install copy
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install copy")
|
printLog(log, "--- Install copy")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
installPath = InstallDirectory + "/" + CopyInstallDirectory
|
installPath = InstallDirectory + "/" + CopyInstallDirectory
|
||||||
mkPath(log, installPath)
|
mkPath(log, installPath)
|
||||||
|
|
||||||
printLog(log, ">>> Install copy <<<")
|
printLog(log, ">>> Install copy <<<")
|
||||||
for dir in CopyDirectSourceDirectories:
|
for dir in CopyDirectSourceDirectories:
|
||||||
copyFilesRecursiveNoTreeIfNeeded(log, dir, installPath)
|
copyFilesRecursiveNoTreeIfNeeded(log, dir, installPath)
|
||||||
for file in CopyDirectSourceFiles:
|
for file in CopyDirectSourceFiles:
|
||||||
copyFileIfNeeded(log, file, installPath + "/" + os.path.basename(file))
|
copyFileIfNeeded(log, file, installPath + "/" + os.path.basename(file))
|
||||||
for dir in CopyLeveldesignSourceDirectories:
|
for dir in CopyLeveldesignSourceDirectories:
|
||||||
copyFilesRecursiveNoTreeIfNeeded(log, LeveldesignDirectory + "/" + dir, installPath)
|
copyFilesRecursiveNoTreeIfNeeded(log, LeveldesignDirectory + "/" + dir, installPath)
|
||||||
for file in CopyLeveldesignSourceFiles:
|
for file in CopyLeveldesignSourceFiles:
|
||||||
copyFileIfNeeded(log, LeveldesignDirectory + "/" + file, installPath + "/" + os.path.basename(file))
|
copyFileIfNeeded(log, LeveldesignDirectory + "/" + file, installPath + "/" + os.path.basename(file))
|
||||||
for dir in CopyLeveldesignWorldSourceDirectories:
|
for dir in CopyLeveldesignWorldSourceDirectories:
|
||||||
copyFilesRecursiveNoTreeIfNeeded(log, LeveldesignWorldDirectory + "/" + dir, installPath)
|
copyFilesRecursiveNoTreeIfNeeded(log, LeveldesignWorldDirectory + "/" + dir, installPath)
|
||||||
for file in CopyLeveldesignWorldSourceFiles:
|
for file in CopyLeveldesignWorldSourceFiles:
|
||||||
copyFileIfNeeded(log, LeveldesignWorldDirectory + "/" + file, installPath + "/" + os.path.basename(file))
|
copyFileIfNeeded(log, LeveldesignWorldDirectory + "/" + file, installPath + "/" + os.path.basename(file))
|
||||||
for dir in CopyLeveldesignDfnSourceDirectories:
|
for dir in CopyLeveldesignDfnSourceDirectories:
|
||||||
copyFilesRecursiveNoTreeIfNeeded(log, LeveldesignDfnDirectory + "/" + dir, installPath)
|
copyFilesRecursiveNoTreeIfNeeded(log, LeveldesignDfnDirectory + "/" + dir, installPath)
|
||||||
for file in CopyLeveldesignDfnSourceFiles:
|
for file in CopyLeveldesignDfnSourceFiles:
|
||||||
copyFileIfNeeded(log, LeveldesignDfnDirectory + "/" + file, installPath + "/" + os.path.basename(file))
|
copyFileIfNeeded(log, LeveldesignDfnDirectory + "/" + file, installPath + "/" + os.path.basename(file))
|
||||||
for dir in CopyDatabaseSourceDirectories:
|
for dir in CopyDatabaseSourceDirectories:
|
||||||
copyFilesRecursiveNoTreeIfNeeded(log, DatabaseDirectory + "/" + dir, installPath)
|
copyFilesRecursiveNoTreeIfNeeded(log, DatabaseDirectory + "/" + dir, installPath)
|
||||||
for file in CopyDatabaseSourceFiles:
|
for file in CopyDatabaseSourceFiles:
|
||||||
copyFileIfNeeded(log, DatabaseDirectory + "/" + file, installPath + "/" + os.path.basename(file))
|
copyFileIfNeeded(log, DatabaseDirectory + "/" + file, installPath + "/" + os.path.basename(file))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
CopyWindowsExeDllCfgSourceFiles
|
CopyWindowsExeDllCfgSourceFiles
|
||||||
except NameError:
|
except NameError:
|
||||||
CopyWindowsExeDllCfgSourceFiles = [ ]
|
CopyWindowsExeDllCfgSourceFiles = [ ]
|
||||||
for file in CopyWindowsExeDllCfgSourceFiles:
|
for file in CopyWindowsExeDllCfgSourceFiles:
|
||||||
filePath = findFileMultiDir(log, WindowsExeDllCfgDirectories, file)
|
filePath = findFileMultiDir(log, WindowsExeDllCfgDirectories, file)
|
||||||
if (filePath != ""):
|
if (filePath != ""):
|
||||||
copyFileIfNeeded(log, filePath, installPath + "/" + os.path.basename(file))
|
copyFileIfNeeded(log, filePath, installPath + "/" + os.path.basename(file))
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,65 +1,65 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief Setup displace
|
# \brief Setup displace
|
||||||
# \date 2009-03-10-21-45-GMT
|
# \date 2009-03-10-21-45-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup displace
|
# Setup displace
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup displace")
|
printLog(log, "--- Setup displace")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dir in DisplaceSourceDirectories:
|
for dir in DisplaceSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + DisplaceExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + DisplaceExportDirectory)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + DisplaceInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + DisplaceInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,55 +1,55 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export displace
|
# \brief Export displace
|
||||||
# \date 2009-03-10-21-45-GMT
|
# \date 2009-03-10-21-45-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export displace
|
# Export displace
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export displace")
|
printLog(log, "--- Export displace")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
mkPath(log, ExportBuildDirectory + "/" + DisplaceExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + DisplaceExportDirectory)
|
||||||
for dir in DisplaceSourceDirectories:
|
for dir in DisplaceSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
copyFilesExtNoTreeIfNeeded(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + DisplaceExportDirectory, ".tga")
|
copyFilesExtNoTreeIfNeeded(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + DisplaceExportDirectory, ".tga")
|
||||||
copyFilesExtNoTreeIfNeeded(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + DisplaceExportDirectory, ".png")
|
copyFilesExtNoTreeIfNeeded(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + DisplaceExportDirectory, ".png")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,49 +1,49 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build displace
|
# \brief Build displace
|
||||||
# \date 2009-03-10-21-45-GMT
|
# \date 2009-03-10-21-45-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build displace
|
# Build displace
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build displace")
|
printLog(log, "--- Build displace")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,57 +1,57 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install displace
|
# \brief Install displace
|
||||||
# \date 2009-03-10-21-45-GMT
|
# \date 2009-03-10-21-45-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install displace
|
# Install displace
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install displace")
|
printLog(log, "--- Install displace")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Install displace <<<")
|
printLog(log, ">>> Install displace <<<")
|
||||||
installPath = InstallDirectory + "/" + DisplaceInstallDirectory
|
installPath = InstallDirectory + "/" + DisplaceInstallDirectory
|
||||||
mkPath(log, installPath)
|
mkPath(log, installPath)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + DisplaceExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + DisplaceExportDirectory)
|
||||||
copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + DisplaceExportDirectory, installPath, ".tga")
|
copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + DisplaceExportDirectory, installPath, ".tga")
|
||||||
copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + DisplaceExportDirectory, installPath, ".png")
|
copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + DisplaceExportDirectory, installPath, ".png")
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,66 +1,66 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief setup farbank
|
# \brief setup farbank
|
||||||
# \date 2009-03-10-21-12-GMT
|
# \date 2009-03-10-21-12-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup farbank
|
# Setup farbank
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup farbank")
|
printLog(log, "--- Setup farbank")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for postfix in MultipleTilesPostfix:
|
for postfix in MultipleTilesPostfix:
|
||||||
mkPath(log, DatabaseDirectory + "/" + TileRootSourceDirectory + postfix)
|
mkPath(log, DatabaseDirectory + "/" + TileRootSourceDirectory + postfix)
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + SmallbankExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + SmallbankExportDirectory)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + FarbankBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + FarbankBuildDirectory)
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + BankInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + BankInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,49 +1,49 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export farbank
|
# \brief Export farbank
|
||||||
# \date 2009-03-10-21-12-GMT
|
# \date 2009-03-10-21-12-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export farbank
|
# Export farbank
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export farbank")
|
printLog(log, "--- Export farbank")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,74 +1,74 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build farbank
|
# \brief Build farbank
|
||||||
# \date 2009-03-10-21-12-GMT
|
# \date 2009-03-10-21-12-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build farbank
|
# Build farbank
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build farbank")
|
printLog(log, "--- Build farbank")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
||||||
BuildFarbank = findTool(log, ToolDirectories, BuildFarbankTool, ToolSuffix)
|
BuildFarbank = findTool(log, ToolDirectories, BuildFarbankTool, ToolSuffix)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# For each bank export farbank
|
# For each bank export farbank
|
||||||
printLog(log, ">>> Build farbank <<<")
|
printLog(log, ">>> Build farbank <<<")
|
||||||
if ExecTimeout == "":
|
if ExecTimeout == "":
|
||||||
toolLogFail(log, ExecTimeoutTool, ToolSuffix)
|
toolLogFail(log, ExecTimeoutTool, ToolSuffix)
|
||||||
elif BuildFarbank == "":
|
elif BuildFarbank == "":
|
||||||
toolLogFail(log, BuildFarbankTool, ToolSuffix)
|
toolLogFail(log, BuildFarbankTool, ToolSuffix)
|
||||||
else:
|
else:
|
||||||
mkPath(log, ExportBuildDirectory + "/" + SmallbankExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + SmallbankExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + FarbankBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + FarbankBuildDirectory)
|
||||||
files = findFiles(log, ExportBuildDirectory + "/" + SmallbankExportDirectory, "", ".smallbank")
|
files = findFiles(log, ExportBuildDirectory + "/" + SmallbankExportDirectory, "", ".smallbank")
|
||||||
for file in files:
|
for file in files:
|
||||||
sourceFile = ExportBuildDirectory + "/" + SmallbankExportDirectory + "/" + file
|
sourceFile = ExportBuildDirectory + "/" + SmallbankExportDirectory + "/" + file
|
||||||
if os.path.isfile(sourceFile):
|
if os.path.isfile(sourceFile):
|
||||||
for postfix in MultipleTilesPostfix:
|
for postfix in MultipleTilesPostfix:
|
||||||
destFile = ExportBuildDirectory + "/" + FarbankBuildDirectory + "/" + file[0:-len(".smallbank")] + postfix + ".farbank"
|
destFile = ExportBuildDirectory + "/" + FarbankBuildDirectory + "/" + file[0:-len(".smallbank")] + postfix + ".farbank"
|
||||||
if (needUpdateLogRemoveDest(log, sourceFile, destFile)):
|
if (needUpdateLogRemoveDest(log, sourceFile, destFile)):
|
||||||
mkPath(log, DatabaseDirectory + "/" + TileRootSourceDirectory + postfix)
|
mkPath(log, DatabaseDirectory + "/" + TileRootSourceDirectory + postfix)
|
||||||
subprocess.call([ ExecTimeout, str(FarbankBuildTimeout), BuildFarbank, sourceFile, destFile, "-d" + DatabaseDirectory + "/" + TileRootSourceDirectory + postfix + "/", "-p" + postfix ])
|
subprocess.call([ ExecTimeout, str(FarbankBuildTimeout), BuildFarbank, sourceFile, destFile, "-d" + DatabaseDirectory + "/" + TileRootSourceDirectory + postfix + "/", "-p" + postfix ])
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,55 +1,55 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install farbank
|
# \brief Install farbank
|
||||||
# \date 2009-03-10-21-12-GMT
|
# \date 2009-03-10-21-12-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install farbank
|
# Install farbank
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install farbank")
|
printLog(log, "--- Install farbank")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Install farbank <<<")
|
printLog(log, ">>> Install farbank <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + FarbankBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + FarbankBuildDirectory)
|
||||||
mkPath(log, InstallDirectory + "/" + BankInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + BankInstallDirectory)
|
||||||
copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + FarbankBuildDirectory, InstallDirectory + "/" + BankInstallDirectory, ".farbank")
|
copyFilesExtNoTreeIfNeeded(log, ExportBuildDirectory + "/" + FarbankBuildDirectory, InstallDirectory + "/" + BankInstallDirectory, ".farbank")
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,65 +1,65 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief setup font
|
# \brief setup font
|
||||||
# \date 2009-03-10-19-43-GMT
|
# \date 2009-03-10-19-43-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# setup font
|
# setup font
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup font")
|
printLog(log, "--- Setup font")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dir in FontSourceDirectories:
|
for dir in FontSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + FontExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + FontExportDirectory)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + FontInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + FontInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,51 +1,51 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build font
|
# \brief Build font
|
||||||
# \date 2009-03-10-19-43-GMT
|
# \date 2009-03-10-19-43-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build font
|
# Build font
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build font")
|
printLog(log, "--- Build font")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,78 +1,78 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief setup ig
|
# \brief setup ig
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup ig
|
# Setup ig
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup ig")
|
printLog(log, "--- Setup ig")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dir in IgLandSourceDirectories:
|
for dir in IgLandSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
for dir in IgOtherSourceDirectories:
|
for dir in IgOtherSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
mkPath(log, DatabaseDirectory + "/" + LigoBaseSourceDirectory)
|
mkPath(log, DatabaseDirectory + "/" + LigoBaseSourceDirectory)
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgStaticLandExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgStaticLandExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgStaticOtherExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgStaticOtherExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgStaticTagExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgStaticTagExportDirectory)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + LigoIgLandBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + LigoIgLandBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + LigoIgOtherBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + LigoIgOtherBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgElevLandPrimBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgElevLandPrimBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgElevLandLigoBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgElevLandLigoBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgElevLandStaticBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgElevLandStaticBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgTempLandMergeBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgTempLandMergeBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgLandBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgLandBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgOtherBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgOtherBuildDirectory)
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
#mkPath(log, InstallDirectory + "/" + IgInstallDirectory)
|
#mkPath(log, InstallDirectory + "/" + IgInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,148 +1,148 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export ig
|
# \brief Export ig
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export ig
|
# Export ig
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
if os.path.isfile("temp_log.log"):
|
if os.path.isfile("temp_log.log"):
|
||||||
os.remove("temp_log.log")
|
os.remove("temp_log.log")
|
||||||
log = open("temp_log.log", "w")
|
log = open("temp_log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export ig")
|
printLog(log, "--- Export ig")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
Max = "" #find later
|
Max = "" #find later
|
||||||
|
|
||||||
|
|
||||||
def igExport(sourceDir, targetDir):
|
def igExport(sourceDir, targetDir):
|
||||||
scriptSrc = "maxscript/ig_export.ms"
|
scriptSrc = "maxscript/ig_export.ms"
|
||||||
scriptDst = MaxUserDirectory + "/scripts/ig_export.ms"
|
scriptDst = MaxUserDirectory + "/scripts/ig_export.ms"
|
||||||
outputLogfile = ScriptDirectory + "/processes/ig/log.log"
|
outputLogfile = ScriptDirectory + "/processes/ig/log.log"
|
||||||
tagDirectory = ExportBuildDirectory + "/" + IgStaticTagExportDirectory
|
tagDirectory = ExportBuildDirectory + "/" + IgStaticTagExportDirectory
|
||||||
outputDirectory = ExportBuildDirectory + "/" + targetDir
|
outputDirectory = ExportBuildDirectory + "/" + targetDir
|
||||||
maxSourceDir = DatabaseDirectory + "/" + sourceDir
|
maxSourceDir = DatabaseDirectory + "/" + sourceDir
|
||||||
maxRunningTagFile = tagDirectory + "/max_running.tag"
|
maxRunningTagFile = tagDirectory + "/max_running.tag"
|
||||||
if (needUpdateDirByTagLog(log, maxSourceDir, ".max", tagDirectory, ".max.tag")):
|
if (needUpdateDirByTagLog(log, maxSourceDir, ".max", tagDirectory, ".max.tag")):
|
||||||
tagList = findFiles(log, tagDirectory, "", ".tag")
|
tagList = findFiles(log, tagDirectory, "", ".tag")
|
||||||
tagLen = len(tagList)
|
tagLen = len(tagList)
|
||||||
if os.path.isfile(scriptDst):
|
if os.path.isfile(scriptDst):
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
tagDiff = 1
|
tagDiff = 1
|
||||||
sSrc = open(scriptSrc, "r")
|
sSrc = open(scriptSrc, "r")
|
||||||
sDst = open(scriptDst, "w")
|
sDst = open(scriptDst, "w")
|
||||||
for line in sSrc:
|
for line in sSrc:
|
||||||
newline = line.replace("%OutputLogfile%", outputLogfile)
|
newline = line.replace("%OutputLogfile%", outputLogfile)
|
||||||
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
||||||
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
||||||
newline = newline.replace("%TagDirectory%", tagDirectory)
|
newline = newline.replace("%TagDirectory%", tagDirectory)
|
||||||
sDst.write(newline)
|
sDst.write(newline)
|
||||||
sSrc.close()
|
sSrc.close()
|
||||||
sDst.close()
|
sDst.close()
|
||||||
zeroRetryLimit = 3
|
zeroRetryLimit = 3
|
||||||
while tagDiff > 0:
|
while tagDiff > 0:
|
||||||
mrt = open(maxRunningTagFile, "w")
|
mrt = open(maxRunningTagFile, "w")
|
||||||
mrt.write("moe-moe-kyun")
|
mrt.write("moe-moe-kyun")
|
||||||
mrt.close()
|
mrt.close()
|
||||||
printLog(log, "MAXSCRIPT " + scriptDst)
|
printLog(log, "MAXSCRIPT " + scriptDst)
|
||||||
subprocess.call([ Max, "-U", "MAXScript", "ig_export.ms", "-q", "-mi", "-mip" ])
|
subprocess.call([ Max, "-U", "MAXScript", "ig_export.ms", "-q", "-mi", "-mip" ])
|
||||||
if os.path.exists(outputLogfile):
|
if os.path.exists(outputLogfile):
|
||||||
try:
|
try:
|
||||||
lSrc = open(outputLogfile, "r")
|
lSrc = open(outputLogfile, "r")
|
||||||
for line in lSrc:
|
for line in lSrc:
|
||||||
lineStrip = line.strip()
|
lineStrip = line.strip()
|
||||||
if (len(lineStrip) > 0):
|
if (len(lineStrip) > 0):
|
||||||
printLog(log, lineStrip)
|
printLog(log, lineStrip)
|
||||||
lSrc.close()
|
lSrc.close()
|
||||||
os.remove(outputLogfile)
|
os.remove(outputLogfile)
|
||||||
except Exception:
|
except Exception:
|
||||||
printLog(log, "ERROR Failed to read 3dsmax log")
|
printLog(log, "ERROR Failed to read 3dsmax log")
|
||||||
else:
|
else:
|
||||||
printLog(log, "WARNING No 3dsmax log")
|
printLog(log, "WARNING No 3dsmax log")
|
||||||
tagList = findFiles(log, tagDirectory, "", ".tag")
|
tagList = findFiles(log, tagDirectory, "", ".tag")
|
||||||
newTagLen = len(tagList)
|
newTagLen = len(tagList)
|
||||||
tagDiff = newTagLen - tagLen
|
tagDiff = newTagLen - tagLen
|
||||||
tagLen = newTagLen
|
tagLen = newTagLen
|
||||||
addTagDiff = 0
|
addTagDiff = 0
|
||||||
if os.path.exists(maxRunningTagFile):
|
if os.path.exists(maxRunningTagFile):
|
||||||
printLog(log, "FAIL 3ds Max crashed and/or file export failed!")
|
printLog(log, "FAIL 3ds Max crashed and/or file export failed!")
|
||||||
if tagDiff == 0:
|
if tagDiff == 0:
|
||||||
if zeroRetryLimit > 0:
|
if zeroRetryLimit > 0:
|
||||||
zeroRetryLimit = zeroRetryLimit - 1
|
zeroRetryLimit = zeroRetryLimit - 1
|
||||||
addTagDiff = 1
|
addTagDiff = 1
|
||||||
else:
|
else:
|
||||||
printLog(log, "FAIL Retry limit reached!")
|
printLog(log, "FAIL Retry limit reached!")
|
||||||
else:
|
else:
|
||||||
addTagDiff = 1
|
addTagDiff = 1
|
||||||
os.remove(maxRunningTagFile)
|
os.remove(maxRunningTagFile)
|
||||||
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
||||||
tagDiff += addTagDiff
|
tagDiff += addTagDiff
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
if MaxAvailable:
|
if MaxAvailable:
|
||||||
# Find tools
|
# Find tools
|
||||||
Max = findMax(log, MaxDirectory, MaxExecutable)
|
Max = findMax(log, MaxDirectory, MaxExecutable)
|
||||||
# ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
# ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgStaticTagExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgStaticTagExportDirectory)
|
||||||
|
|
||||||
# Export ig land 3dsmax
|
# Export ig land 3dsmax
|
||||||
printLog(log, ">>> Export ig land 3dsmax <<<")
|
printLog(log, ">>> Export ig land 3dsmax <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgStaticLandExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgStaticLandExportDirectory)
|
||||||
for dir in IgLandSourceDirectories:
|
for dir in IgLandSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
igExport(dir, IgStaticLandExportDirectory)
|
igExport(dir, IgStaticLandExportDirectory)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Export ig other 3dsmax
|
# Export ig other 3dsmax
|
||||||
printLog(log, ">>> Export ig other 3dsmax <<<")
|
printLog(log, ">>> Export ig other 3dsmax <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgStaticOtherExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgStaticOtherExportDirectory)
|
||||||
for dir in IgOtherSourceDirectories:
|
for dir in IgOtherSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
igExport(dir, IgStaticOtherExportDirectory)
|
igExport(dir, IgStaticOtherExportDirectory)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
shutil.move("temp_log.log", "log.log")
|
shutil.move("temp_log.log", "log.log")
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,60 +1,60 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install ig
|
# \brief Install ig
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install ig
|
# Install ig
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install ig")
|
printLog(log, "--- Install ig")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
clientPathIg = InstallDirectory + "/" + IgInstallDirectory
|
clientPathIg = InstallDirectory + "/" + IgInstallDirectory
|
||||||
mkPath(log, clientPathIg)
|
mkPath(log, clientPathIg)
|
||||||
|
|
||||||
printLog(log, ">>> Install ig <<<")
|
printLog(log, ">>> Install ig <<<")
|
||||||
landBuildDir = ExportBuildDirectory + "/" + IgLandBuildDirectory
|
landBuildDir = ExportBuildDirectory + "/" + IgLandBuildDirectory
|
||||||
mkPath(log, landBuildDir)
|
mkPath(log, landBuildDir)
|
||||||
copyFilesExtNoTreeIfNeeded(log, landBuildDir, clientPathIg, "_ig.txt") # Copy the *_ig.txt file
|
copyFilesExtNoTreeIfNeeded(log, landBuildDir, clientPathIg, "_ig.txt") # Copy the *_ig.txt file
|
||||||
# Do not copy *.ig in ig_land, because zone process will copy zone ig lighted versions into client directory.
|
# Do not copy *.ig in ig_land, because zone process will copy zone ig lighted versions into client directory.
|
||||||
# Do not copy *.ig ig_other, because ig_light process will copy ig lighted versions into client directory.
|
# Do not copy *.ig ig_other, because ig_light process will copy ig lighted versions into client directory.
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,64 +1,64 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief Setup ig_light
|
# \brief Setup ig_light
|
||||||
# \date 2009-03-11-15-16-GMT
|
# \date 2009-03-11-15-16-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup ig_light
|
# Setup ig_light
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup ig_light")
|
printLog(log, "--- Setup ig_light")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgOtherBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgOtherBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + IgOtherLightedBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + IgOtherLightedBuildDirectory)
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + IgInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + IgInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,49 +1,49 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export ig_light
|
# \brief Export ig_light
|
||||||
# \date 2009-03-11-15-16-GMT
|
# \date 2009-03-11-15-16-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export ig_light
|
# Export ig_light
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export ig_light")
|
printLog(log, "--- Export ig_light")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,65 +1,65 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build ig_light
|
# \brief Build ig_light
|
||||||
# \date 2009-03-11-15-16-GMT
|
# \date 2009-03-11-15-16-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build ig_light
|
# Build ig_light
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build ig_light")
|
printLog(log, "--- Build ig_light")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
IgLighter = findTool(log, ToolDirectories, IgLighterTool, ToolSuffix)
|
IgLighter = findTool(log, ToolDirectories, IgLighterTool, ToolSuffix)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# For each ig_light directory
|
# For each ig_light directory
|
||||||
printLog(log, ">>> Build ig_light <<<")
|
printLog(log, ">>> Build ig_light <<<")
|
||||||
if IgLighter == "":
|
if IgLighter == "":
|
||||||
toolLogFail(log, IgLighterTool, ToolSuffix)
|
toolLogFail(log, IgLighterTool, ToolSuffix)
|
||||||
else:
|
else:
|
||||||
srcDir = ExportBuildDirectory + "/" + IgOtherBuildDirectory
|
srcDir = ExportBuildDirectory + "/" + IgOtherBuildDirectory
|
||||||
mkPath(log, srcDir)
|
mkPath(log, srcDir)
|
||||||
destDir = ExportBuildDirectory + "/" + IgOtherLightedBuildDirectory
|
destDir = ExportBuildDirectory + "/" + IgOtherLightedBuildDirectory
|
||||||
mkPath(log, destDir)
|
mkPath(log, destDir)
|
||||||
subprocess.call([ IgLighter, srcDir, destDir, ActiveProjectDirectory + "/generated/properties.cfg" ])
|
subprocess.call([ IgLighter, srcDir, destDir, ActiveProjectDirectory + "/generated/properties.cfg" ])
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,57 +1,57 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install ig_light
|
# \brief Install ig_light
|
||||||
# \date 2009-03-11-15-16-GMT
|
# \date 2009-03-11-15-16-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install ig_light
|
# Install ig_light
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install ig_light")
|
printLog(log, "--- Install ig_light")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Install ig_light <<<")
|
printLog(log, ">>> Install ig_light <<<")
|
||||||
srcDir = ExportBuildDirectory + "/" + IgOtherLightedBuildDirectory
|
srcDir = ExportBuildDirectory + "/" + IgOtherLightedBuildDirectory
|
||||||
mkPath(log, srcDir)
|
mkPath(log, srcDir)
|
||||||
destDir = InstallDirectory + "/" + IgInstallDirectory
|
destDir = InstallDirectory + "/" + IgInstallDirectory
|
||||||
mkPath(log, destDir)
|
mkPath(log, destDir)
|
||||||
copyFilesNoTreeIfNeeded(log, srcDir, destDir)
|
copyFilesNoTreeIfNeeded(log, srcDir, destDir)
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,77 +1,77 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief Setup interface
|
# \brief Setup interface
|
||||||
# \date 2009-03-10 14:56GMT
|
# \date 2009-03-10 14:56GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup interface
|
# Setup interface
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup interface")
|
printLog(log, "--- Setup interface")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dirs in InterfaceSourceDirectories:
|
for dirs in InterfaceSourceDirectories:
|
||||||
for dir in dirs:
|
for dir in dirs:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
for dir in InterfaceDxtcSourceDirectories:
|
for dir in InterfaceDxtcSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
for dir in InterfaceFullscreenSourceDirectories:
|
for dir in InterfaceFullscreenSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
for dir in Interface3DSourceDirectories:
|
for dir in Interface3DSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceFullscreenExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceFullscreenExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + Interface3DExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + Interface3DExportDirectory)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory)
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + InterfaceInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + InterfaceInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,105 +1,105 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export interface
|
# \brief Export interface
|
||||||
# \date 2009-03-10 13:13GMT
|
# \date 2009-03-10 13:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export interface
|
# Export interface
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export interface")
|
printLog(log, "--- Export interface")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
TgaToDds = findTool(log, ToolDirectories, TgaToDdsTool, ToolSuffix)
|
TgaToDds = findTool(log, ToolDirectories, TgaToDdsTool, ToolSuffix)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# For each interface directory
|
# For each interface directory
|
||||||
printLog(log, ">>> Export interface <<<")
|
printLog(log, ">>> Export interface <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceExportDirectory)
|
||||||
for dirs in InterfaceSourceDirectories:
|
for dirs in InterfaceSourceDirectories:
|
||||||
niouname = dirs[0].replace("/", "_")
|
niouname = dirs[0].replace("/", "_")
|
||||||
newpath = ExportBuildDirectory + "/" + InterfaceExportDirectory + "/" + niouname
|
newpath = ExportBuildDirectory + "/" + InterfaceExportDirectory + "/" + niouname
|
||||||
mkPath(log, newpath)
|
mkPath(log, newpath)
|
||||||
for dir in dirs:
|
for dir in dirs:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
copyFilesExtNoSubdirIfNeeded(log, DatabaseDirectory + "/" + dir, newpath, ".tga")
|
copyFilesExtNoSubdirIfNeeded(log, DatabaseDirectory + "/" + dir, newpath, ".tga")
|
||||||
copyFilesExtNoSubdirIfNeeded(log, DatabaseDirectory + "/" + dir, newpath, ".png")
|
copyFilesExtNoSubdirIfNeeded(log, DatabaseDirectory + "/" + dir, newpath, ".png")
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# For each interface directory to compress in one DXTC
|
# For each interface directory to compress in one DXTC
|
||||||
printLog(log, ">>> Export interface dxtc <<<")
|
printLog(log, ">>> Export interface dxtc <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory)
|
||||||
for dir in InterfaceDxtcSourceDirectories:
|
for dir in InterfaceDxtcSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
copyFilesExtNoSubdirIfNeeded(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory, ".tga")
|
copyFilesExtNoSubdirIfNeeded(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory, ".tga")
|
||||||
copyFilesExtNoSubdirIfNeeded(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory, ".png")
|
copyFilesExtNoSubdirIfNeeded(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory, ".png")
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# For each interface fullscreen directory compress independently all in dds
|
# For each interface fullscreen directory compress independently all in dds
|
||||||
printLog(log, ">>> Export interface fullscreen <<<")
|
printLog(log, ">>> Export interface fullscreen <<<")
|
||||||
if TgaToDds == "":
|
if TgaToDds == "":
|
||||||
toolLogFail(log, TgaToDdsTool, ToolSuffix)
|
toolLogFail(log, TgaToDdsTool, ToolSuffix)
|
||||||
else:
|
else:
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceFullscreenExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceFullscreenExportDirectory)
|
||||||
for dir in InterfaceFullscreenSourceDirectories:
|
for dir in InterfaceFullscreenSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
files = findFiles(log, DatabaseDirectory + "/" + dir, "", ".tga")
|
files = findFiles(log, DatabaseDirectory + "/" + dir, "", ".tga")
|
||||||
for file in files:
|
for file in files:
|
||||||
sourceFile = DatabaseDirectory + "/" + dir + "/" + file
|
sourceFile = DatabaseDirectory + "/" + dir + "/" + file
|
||||||
destFile = ExportBuildDirectory + "/" + InterfaceFullscreenExportDirectory + "/" + os.path.basename(file)[0:-len(".tga")] + ".dds"
|
destFile = ExportBuildDirectory + "/" + InterfaceFullscreenExportDirectory + "/" + os.path.basename(file)[0:-len(".tga")] + ".dds"
|
||||||
if needUpdateLogRemoveDest(log, sourceFile, destFile):
|
if needUpdateLogRemoveDest(log, sourceFile, destFile):
|
||||||
subprocess.call([ TgaToDds, sourceFile, "-o", destFile, "-a", "5" ])
|
subprocess.call([ TgaToDds, sourceFile, "-o", destFile, "-a", "5" ])
|
||||||
files = findFiles(log, DatabaseDirectory + "/" + dir, "", ".png")
|
files = findFiles(log, DatabaseDirectory + "/" + dir, "", ".png")
|
||||||
for file in files:
|
for file in files:
|
||||||
sourceFile = DatabaseDirectory + "/" + dir + "/" + file
|
sourceFile = DatabaseDirectory + "/" + dir + "/" + file
|
||||||
destFile = ExportBuildDirectory + "/" + InterfaceFullscreenExportDirectory + "/" + os.path.basename(file)[0:-len(".png")] + ".dds"
|
destFile = ExportBuildDirectory + "/" + InterfaceFullscreenExportDirectory + "/" + os.path.basename(file)[0:-len(".png")] + ".dds"
|
||||||
if needUpdateLogRemoveDest(log, sourceFile, destFile):
|
if needUpdateLogRemoveDest(log, sourceFile, destFile):
|
||||||
subprocess.call([ TgaToDds, sourceFile, "-o", destFile, "-a", "5" ])
|
subprocess.call([ TgaToDds, sourceFile, "-o", destFile, "-a", "5" ])
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# For each interface 3d directory
|
# For each interface 3d directory
|
||||||
printLog(log, ">>> Export interface 3d <<<")
|
printLog(log, ">>> Export interface 3d <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + Interface3DExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + Interface3DExportDirectory)
|
||||||
for dir in Interface3DSourceDirectories:
|
for dir in Interface3DSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
copyFiles(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + Interface3DExportDirectory)
|
copyFiles(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + Interface3DExportDirectory)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,83 +1,83 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build interface
|
# \brief Build interface
|
||||||
# \date 2009-03-10 13:13GMT
|
# \date 2009-03-10 13:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build interface
|
# Build interface
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build interface")
|
printLog(log, "--- Build interface")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
BuildInterface = findTool(log, ToolDirectories, BuildInterfaceTool, ToolSuffix)
|
BuildInterface = findTool(log, ToolDirectories, BuildInterfaceTool, ToolSuffix)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# For each interface directory
|
# For each interface directory
|
||||||
printLog(log, ">>> Build interface <<<")
|
printLog(log, ">>> Build interface <<<")
|
||||||
if BuildInterface == "":
|
if BuildInterface == "":
|
||||||
toolLogFail(log, BuildInterfaceTool, ToolSuffix)
|
toolLogFail(log, BuildInterfaceTool, ToolSuffix)
|
||||||
else:
|
else:
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceBuildDirectory)
|
||||||
for dir in os.listdir(ExportBuildDirectory + "/" + InterfaceExportDirectory):
|
for dir in os.listdir(ExportBuildDirectory + "/" + InterfaceExportDirectory):
|
||||||
dirPath = ExportBuildDirectory + "/" + InterfaceExportDirectory + "/" + dir
|
dirPath = ExportBuildDirectory + "/" + InterfaceExportDirectory + "/" + dir
|
||||||
if (os.path.isdir(dirPath)) and dir != ".svn" and dir != "*.*":
|
if (os.path.isdir(dirPath)) and dir != ".svn" and dir != "*.*":
|
||||||
texturePath = ExportBuildDirectory + "/" + InterfaceBuildDirectory + "/texture_" + dir + ".tga"
|
texturePath = ExportBuildDirectory + "/" + InterfaceBuildDirectory + "/texture_" + dir + ".tga"
|
||||||
if needUpdateDirNoSubdirFile(log, dirPath, texturePath):
|
if needUpdateDirNoSubdirFile(log, dirPath, texturePath):
|
||||||
subprocess.call([ BuildInterface, texturePath, dirPath ])
|
subprocess.call([ BuildInterface, texturePath, dirPath ])
|
||||||
else:
|
else:
|
||||||
printLog(log, "SKIP " + texturePath)
|
printLog(log, "SKIP " + texturePath)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# For each interface directory to compress in one DXTC
|
# For each interface directory to compress in one DXTC
|
||||||
printLog(log, ">>> Build interface dxtc <<<")
|
printLog(log, ">>> Build interface dxtc <<<")
|
||||||
if BuildInterface == "":
|
if BuildInterface == "":
|
||||||
toolLogFail(log, BuildInterfaceTool, ToolSuffix)
|
toolLogFail(log, BuildInterfaceTool, ToolSuffix)
|
||||||
else:
|
else:
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory)
|
||||||
dirPath = ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory
|
dirPath = ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory
|
||||||
texturePath = ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory + "/texture_interfaces_dxtc.tga"
|
texturePath = ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory + "/texture_interfaces_dxtc.tga"
|
||||||
if needUpdateDirNoSubdirFile(log, dirPath, texturePath):
|
if needUpdateDirNoSubdirFile(log, dirPath, texturePath):
|
||||||
subprocess.call([ BuildInterface, texturePath, dirPath ])
|
subprocess.call([ BuildInterface, texturePath, dirPath ])
|
||||||
else:
|
else:
|
||||||
printLog(log, "SKIP " + texturePath)
|
printLog(log, "SKIP " + texturePath)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,69 +1,69 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install interface
|
# \brief Install interface
|
||||||
# \date 2009-03-10 13:13GMT
|
# \date 2009-03-10 13:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install interface
|
# Install interface
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install interface")
|
printLog(log, "--- Install interface")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
installPath = InstallDirectory + "/" + InterfaceInstallDirectory
|
installPath = InstallDirectory + "/" + InterfaceInstallDirectory
|
||||||
mkPath(log, installPath)
|
mkPath(log, installPath)
|
||||||
|
|
||||||
printLog(log, ">>> Install interface <<<")
|
printLog(log, ">>> Install interface <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceBuildDirectory)
|
||||||
copyFilesNoTreeIfNeeded(log, ExportBuildDirectory + "/" + InterfaceBuildDirectory, installPath)
|
copyFilesNoTreeIfNeeded(log, ExportBuildDirectory + "/" + InterfaceBuildDirectory, installPath)
|
||||||
|
|
||||||
printLog(log, ">>> Install interface dxtc <<<")
|
printLog(log, ">>> Install interface dxtc <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory)
|
||||||
copyFilesNoTreeIfNeeded(log, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory, installPath)
|
copyFilesNoTreeIfNeeded(log, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory, installPath)
|
||||||
|
|
||||||
printLog(log, ">>> Install interface fullscreen <<<")
|
printLog(log, ">>> Install interface fullscreen <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + InterfaceFullscreenExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + InterfaceFullscreenExportDirectory)
|
||||||
copyFilesNoTreeIfNeeded(log, ExportBuildDirectory + "/" + InterfaceFullscreenExportDirectory, installPath)
|
copyFilesNoTreeIfNeeded(log, ExportBuildDirectory + "/" + InterfaceFullscreenExportDirectory, installPath)
|
||||||
|
|
||||||
printLog(log, ">>> Install interface 3d <<<")
|
printLog(log, ">>> Install interface 3d <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + Interface3DExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + Interface3DExportDirectory)
|
||||||
copyFilesNoTreeIfNeeded(log, ExportBuildDirectory + "/" + Interface3DExportDirectory, installPath)
|
copyFilesNoTreeIfNeeded(log, ExportBuildDirectory + "/" + Interface3DExportDirectory, installPath)
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,150 +1,150 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export ligo
|
# \brief Export ligo
|
||||||
# \date 2010-05-24 08:13GMT
|
# \date 2010-05-24 08:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export ligo
|
# Export ligo
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
if os.path.isfile("temp_log.log"):
|
if os.path.isfile("temp_log.log"):
|
||||||
os.remove("temp_log.log")
|
os.remove("temp_log.log")
|
||||||
log = open("temp_log.log", "w")
|
log = open("temp_log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export ligo")
|
printLog(log, "--- Export ligo")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
if LigoExportLand == "" or LigoExportOnePass == 1:
|
if LigoExportLand == "" or LigoExportOnePass == 1:
|
||||||
# Find tools
|
# Find tools
|
||||||
Max = findMax(log, MaxDirectory, MaxExecutable)
|
Max = findMax(log, MaxDirectory, MaxExecutable)
|
||||||
ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# For each directory
|
# For each directory
|
||||||
printLog(log, ">>> Export ligo 3dsmax <<<")
|
printLog(log, ">>> Export ligo 3dsmax <<<")
|
||||||
|
|
||||||
ligoIniPath = MaxUserDirectory + "/plugcfg/nelligo.ini"
|
ligoIniPath = MaxUserDirectory + "/plugcfg/nelligo.ini"
|
||||||
mkPath(log, ExportBuildDirectory + "/" + SmallbankExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + SmallbankExportDirectory)
|
||||||
mkPath(log, DatabaseDirectory + "/" + LigoMaxSourceDirectory)
|
mkPath(log, DatabaseDirectory + "/" + LigoMaxSourceDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemIgExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemIgExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemZoneExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemZoneExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemZoneLigoExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemZoneLigoExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemCmbExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemCmbExportDirectory)
|
||||||
mkPath(log, DatabaseDirectory + "/" + ZoneSourceDirectory[0])
|
mkPath(log, DatabaseDirectory + "/" + ZoneSourceDirectory[0])
|
||||||
tagDirectory = ExportBuildDirectory + "/" + LigoEcosystemTagExportDirectory
|
tagDirectory = ExportBuildDirectory + "/" + LigoEcosystemTagExportDirectory
|
||||||
mkPath(log, tagDirectory)
|
mkPath(log, tagDirectory)
|
||||||
if (needUpdateDirByTagLogFiltered(log, DatabaseDirectory + "/" + LigoMaxSourceDirectory, ".max", tagDirectory, ".max.tag", [ "zonematerial", "zonetransition", "zonespecial" ])):
|
if (needUpdateDirByTagLogFiltered(log, DatabaseDirectory + "/" + LigoMaxSourceDirectory, ".max", tagDirectory, ".max.tag", [ "zonematerial", "zonetransition", "zonespecial" ])):
|
||||||
printLog(log, "WRITE " + ligoIniPath)
|
printLog(log, "WRITE " + ligoIniPath)
|
||||||
ligoIni = open(ligoIniPath, "w")
|
ligoIni = open(ligoIniPath, "w")
|
||||||
ligoIni.write("[LigoConfig]\n")
|
ligoIni.write("[LigoConfig]\n")
|
||||||
ligoIni.write("LigoPath=" + DatabaseDirectory + "/" + LigoMaxSourceDirectory + "/\n")
|
ligoIni.write("LigoPath=" + DatabaseDirectory + "/" + LigoMaxSourceDirectory + "/\n")
|
||||||
ligoIni.write("LigoExportPath=" + ExportBuildDirectory + "/" + LigoEcosystemExportDirectory + "/\n")
|
ligoIni.write("LigoExportPath=" + ExportBuildDirectory + "/" + LigoEcosystemExportDirectory + "/\n")
|
||||||
ligoIni.write("LigoOldZonePath=" + DatabaseDirectory + "/" + ZoneSourceDirectory[0] + "/\n")
|
ligoIni.write("LigoOldZonePath=" + DatabaseDirectory + "/" + ZoneSourceDirectory[0] + "/\n")
|
||||||
ligoIni.close()
|
ligoIni.close()
|
||||||
|
|
||||||
outputLogfile = ScriptDirectory + "/processes/ligo/log.log"
|
outputLogfile = ScriptDirectory + "/processes/ligo/log.log"
|
||||||
smallBank = ExportBuildDirectory + "/" + SmallbankExportDirectory + "/" + BankTileBankName + ".smallbank"
|
smallBank = ExportBuildDirectory + "/" + SmallbankExportDirectory + "/" + BankTileBankName + ".smallbank"
|
||||||
maxRunningTagFile = tagDirectory + "/max_running.tag"
|
maxRunningTagFile = tagDirectory + "/max_running.tag"
|
||||||
|
|
||||||
scriptSrc = "maxscript/nel_ligo_export.ms"
|
scriptSrc = "maxscript/nel_ligo_export.ms"
|
||||||
scriptDst = MaxUserDirectory + "/scripts/nel_ligo_export.ms"
|
scriptDst = MaxUserDirectory + "/scripts/nel_ligo_export.ms"
|
||||||
|
|
||||||
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
||||||
tagLen = len(tagList)
|
tagLen = len(tagList)
|
||||||
|
|
||||||
if os.path.isfile(scriptDst):
|
if os.path.isfile(scriptDst):
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
|
|
||||||
tagDiff = 1
|
tagDiff = 1
|
||||||
printLog(log, "WRITE " + scriptDst)
|
printLog(log, "WRITE " + scriptDst)
|
||||||
sSrc = open(scriptSrc, "r")
|
sSrc = open(scriptSrc, "r")
|
||||||
sDst = open(scriptDst, "w")
|
sDst = open(scriptDst, "w")
|
||||||
for line in sSrc:
|
for line in sSrc:
|
||||||
newline = line.replace("%OutputLogfile%", outputLogfile)
|
newline = line.replace("%OutputLogfile%", outputLogfile)
|
||||||
newline = newline.replace("%TagDirectory%", tagDirectory)
|
newline = newline.replace("%TagDirectory%", tagDirectory)
|
||||||
newline = newline.replace("%SmallBankFilename%", smallBank)
|
newline = newline.replace("%SmallBankFilename%", smallBank)
|
||||||
sDst.write(newline)
|
sDst.write(newline)
|
||||||
sSrc.close()
|
sSrc.close()
|
||||||
sDst.close()
|
sDst.close()
|
||||||
|
|
||||||
zeroRetryLimit = 3
|
zeroRetryLimit = 3
|
||||||
while tagDiff > 0:
|
while tagDiff > 0:
|
||||||
mrt = open(maxRunningTagFile, "w")
|
mrt = open(maxRunningTagFile, "w")
|
||||||
mrt.write("moe-moe-kyun")
|
mrt.write("moe-moe-kyun")
|
||||||
mrt.close()
|
mrt.close()
|
||||||
printLog(log, "MAXSCRIPT " + scriptDst)
|
printLog(log, "MAXSCRIPT " + scriptDst)
|
||||||
subprocess.call([ Max, "-U", "MAXScript", "nel_ligo_export.ms", "-q", "-mi", "-mip" ])
|
subprocess.call([ Max, "-U", "MAXScript", "nel_ligo_export.ms", "-q", "-mi", "-mip" ])
|
||||||
if os.path.exists(outputLogfile):
|
if os.path.exists(outputLogfile):
|
||||||
try:
|
try:
|
||||||
lSrc = open(outputLogfile, "r")
|
lSrc = open(outputLogfile, "r")
|
||||||
for line in lSrc:
|
for line in lSrc:
|
||||||
lineStrip = line.strip()
|
lineStrip = line.strip()
|
||||||
if (len(lineStrip) > 0):
|
if (len(lineStrip) > 0):
|
||||||
printLog(log, lineStrip)
|
printLog(log, lineStrip)
|
||||||
lSrc.close()
|
lSrc.close()
|
||||||
os.remove(outputLogfile)
|
os.remove(outputLogfile)
|
||||||
except Exception:
|
except Exception:
|
||||||
printLog(log, "ERROR Failed to read 3dsmax log")
|
printLog(log, "ERROR Failed to read 3dsmax log")
|
||||||
else:
|
else:
|
||||||
printLog(log, "WARNING No 3dsmax log")
|
printLog(log, "WARNING No 3dsmax log")
|
||||||
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
||||||
newTagLen = len(tagList)
|
newTagLen = len(tagList)
|
||||||
tagDiff = newTagLen - tagLen
|
tagDiff = newTagLen - tagLen
|
||||||
tagLen = newTagLen
|
tagLen = newTagLen
|
||||||
addTagDiff = 0
|
addTagDiff = 0
|
||||||
if os.path.exists(maxRunningTagFile):
|
if os.path.exists(maxRunningTagFile):
|
||||||
printLog(log, "FAIL 3ds Max crashed and/or file export failed!")
|
printLog(log, "FAIL 3ds Max crashed and/or file export failed!")
|
||||||
if tagDiff == 0:
|
if tagDiff == 0:
|
||||||
if zeroRetryLimit > 0:
|
if zeroRetryLimit > 0:
|
||||||
zeroRetryLimit = zeroRetryLimit - 1
|
zeroRetryLimit = zeroRetryLimit - 1
|
||||||
addTagDiff = 1
|
addTagDiff = 1
|
||||||
else:
|
else:
|
||||||
printLog(log, "FAIL Retry limit reached!")
|
printLog(log, "FAIL Retry limit reached!")
|
||||||
else:
|
else:
|
||||||
addTagDiff = 1
|
addTagDiff = 1
|
||||||
os.remove(maxRunningTagFile)
|
os.remove(maxRunningTagFile)
|
||||||
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
||||||
tagDiff += addTagDiff
|
tagDiff += addTagDiff
|
||||||
|
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
shutil.move("temp_log.log", "log.log")
|
shutil.move("temp_log.log", "log.log")
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,69 +1,69 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build ligo
|
# \brief Build ligo
|
||||||
# \date 2010-05-24 08:13GMT
|
# \date 2010-05-24 08:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build ligo
|
# Build ligo
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build ligo")
|
printLog(log, "--- Build ligo")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
if LigoExportLand != "":
|
if LigoExportLand != "":
|
||||||
ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
||||||
LandExport = findTool(log, ToolDirectories, LandExportTool, ToolSuffix)
|
LandExport = findTool(log, ToolDirectories, LandExportTool, ToolSuffix)
|
||||||
|
|
||||||
printLog(log, ">>> Generate ligo zone <<<")
|
printLog(log, ">>> Generate ligo zone <<<")
|
||||||
if LandExport == "":
|
if LandExport == "":
|
||||||
toolLogFail(log, LandExportTool, ToolSuffix)
|
toolLogFail(log, LandExportTool, ToolSuffix)
|
||||||
elif ExecTimeout == "":
|
elif ExecTimeout == "":
|
||||||
toolLogfail(log, ExecTimeoutTool, ToolSuffix)
|
toolLogfail(log, ExecTimeoutTool, ToolSuffix)
|
||||||
else:
|
else:
|
||||||
subprocess.call([ ExecTimeout, str(LigoExportTimeout), LandExport, ActiveProjectDirectory + "/generated/land_exporter.cfg" ])
|
subprocess.call([ ExecTimeout, str(LigoExportTimeout), LandExport, ActiveProjectDirectory + "/generated/land_exporter.cfg" ])
|
||||||
|
|
||||||
printLog(log, ">>> Copy to zone builder <<<")
|
printLog(log, ">>> Copy to zone builder <<<")
|
||||||
dirSource = ExportBuildDirectory + "/" + LigoZoneBuildDirectory
|
dirSource = ExportBuildDirectory + "/" + LigoZoneBuildDirectory
|
||||||
dirTarget = ExportBuildDirectory + "/" + ZoneExportDirectory
|
dirTarget = ExportBuildDirectory + "/" + ZoneExportDirectory
|
||||||
mkPath(log, dirSource)
|
mkPath(log, dirSource)
|
||||||
mkPath(log, dirTarget)
|
mkPath(log, dirTarget)
|
||||||
copyFilesExtReplaceNoTreeIfNeeded(log, dirSource, dirTarget, ".zonel", ".zone")
|
copyFilesExtReplaceNoTreeIfNeeded(log, dirSource, dirTarget, ".zonel", ".zone")
|
||||||
copyFilesExtNoTreeIfNeeded(log, dirSource, dirTarget, ".zonenh")
|
copyFilesExtNoTreeIfNeeded(log, dirSource, dirTarget, ".zonenh")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,50 +1,50 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install ligo
|
# \brief Install ligo
|
||||||
# \date 2010-05-24 08:13GMT
|
# \date 2010-05-24 08:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install ligo
|
# Install ligo
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install ligo")
|
printLog(log, "--- Install ligo")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,79 +1,79 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief Setup map
|
# \brief Setup map
|
||||||
# \date 2009-03-10 14:56GMT
|
# \date 2009-03-10 14:56GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup map
|
# Setup map
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup map")
|
printLog(log, "--- Setup map")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dir in MapSourceDirectories:
|
for dir in MapSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
for dir in MapUncompressedSourceDirectories:
|
for dir in MapUncompressedSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
if MapHlsBankFileName != None or MapPanoplyFileList != None:
|
if MapHlsBankFileName != None or MapPanoplyFileList != None:
|
||||||
for panoplyCfg in MapPanoplySourceDirectories:
|
for panoplyCfg in MapPanoplySourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + panoplyCfg[2])
|
mkPath(log, DatabaseDirectory + "/" + panoplyCfg[2])
|
||||||
mkPath(log, DatabaseDirectory + "/" + panoplyCfg[3])
|
mkPath(log, DatabaseDirectory + "/" + panoplyCfg[3])
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapUncompressedExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapUncompressedExportDirectory)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapTagBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapTagBuildDirectory)
|
||||||
if MapHlsBankFileName != None or MapPanoplyFileList != None:
|
if MapHlsBankFileName != None or MapPanoplyFileList != None:
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyHlsBankBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyHlsBankBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory)
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + MapInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + MapInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,71 +1,71 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export map
|
# \brief Export map
|
||||||
# \date 2009-03-10 13:13GMT
|
# \date 2009-03-10 13:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export map
|
# Export map
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export map")
|
printLog(log, "--- Export map")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Export maps that will be compressed to DDS <<<")
|
printLog(log, ">>> Export maps that will be compressed to DDS <<<")
|
||||||
for dir in MapSourceDirectories:
|
for dir in MapSourceDirectories:
|
||||||
sourcePath = DatabaseDirectory + "/" + dir
|
sourcePath = DatabaseDirectory + "/" + dir
|
||||||
mkPath(log, sourcePath)
|
mkPath(log, sourcePath)
|
||||||
destPath = ExportBuildDirectory + "/" + MapExportDirectory
|
destPath = ExportBuildDirectory + "/" + MapExportDirectory
|
||||||
mkPath(log, destPath)
|
mkPath(log, destPath)
|
||||||
copyFilesExtNoSubdirIfNeeded(log, sourcePath, destPath, ".dds")
|
copyFilesExtNoSubdirIfNeeded(log, sourcePath, destPath, ".dds")
|
||||||
copyFilesExtNoSubdirIfNeeded(log, sourcePath, destPath, ".png")
|
copyFilesExtNoSubdirIfNeeded(log, sourcePath, destPath, ".png")
|
||||||
copyFilesExtNoSubdirIfNeeded(log, sourcePath, destPath, ".tga")
|
copyFilesExtNoSubdirIfNeeded(log, sourcePath, destPath, ".tga")
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Export maps that will not be compressed <<<")
|
printLog(log, ">>> Export maps that will not be compressed <<<")
|
||||||
for dir in MapUncompressedSourceDirectories:
|
for dir in MapUncompressedSourceDirectories:
|
||||||
sourcePath = DatabaseDirectory + "/" + dir
|
sourcePath = DatabaseDirectory + "/" + dir
|
||||||
mkPath(log, sourcePath)
|
mkPath(log, sourcePath)
|
||||||
destPath = ExportBuildDirectory + "/" + MapUncompressedExportDirectory
|
destPath = ExportBuildDirectory + "/" + MapUncompressedExportDirectory
|
||||||
mkPath(log, destPath)
|
mkPath(log, destPath)
|
||||||
copyFilesExtNoSubdirIfNeeded(log, sourcePath, destPath, ".dds")
|
copyFilesExtNoSubdirIfNeeded(log, sourcePath, destPath, ".dds")
|
||||||
copyFilesExtNoSubdirIfNeeded(log, sourcePath, destPath, ".png")
|
copyFilesExtNoSubdirIfNeeded(log, sourcePath, destPath, ".png")
|
||||||
copyFilesExtNoSubdirIfNeeded(log, sourcePath, destPath, ".tga")
|
copyFilesExtNoSubdirIfNeeded(log, sourcePath, destPath, ".tga")
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,168 +1,168 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build map
|
# \brief Build map
|
||||||
# \date 2009-03-10 13:13GMT
|
# \date 2009-03-10 13:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build map
|
# Build map
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build map")
|
printLog(log, "--- Build map")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
TgaToDds = findTool(log, ToolDirectories, TgaToDdsTool, ToolSuffix)
|
TgaToDds = findTool(log, ToolDirectories, TgaToDdsTool, ToolSuffix)
|
||||||
ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
ExecTimeout = findTool(log, ToolDirectories, ExecTimeoutTool, ToolSuffix)
|
||||||
PanoplyMaker = findTool(log, ToolDirectories, PanoplyMakerTool, ToolSuffix)
|
PanoplyMaker = findTool(log, ToolDirectories, PanoplyMakerTool, ToolSuffix)
|
||||||
HlsBankMaker = findTool(log, ToolDirectories, HlsBankMakerTool, ToolSuffix)
|
HlsBankMaker = findTool(log, ToolDirectories, HlsBankMakerTool, ToolSuffix)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
buildPanoplyTagPath = ExportBuildDirectory + "/" + MapTagBuildDirectory + "/build_panoply.tag"
|
buildPanoplyTagPath = ExportBuildDirectory + "/" + MapTagBuildDirectory + "/build_panoply.tag"
|
||||||
buildCompressTagPath = ExportBuildDirectory + "/" + MapTagBuildDirectory + "/build_compress.tag"
|
buildCompressTagPath = ExportBuildDirectory + "/" + MapTagBuildDirectory + "/build_compress.tag"
|
||||||
|
|
||||||
if MapPanoplyFileList != None:
|
if MapPanoplyFileList != None:
|
||||||
printLog(log, ">>> Panoply build <<<")
|
printLog(log, ">>> Panoply build <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapTagBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapTagBuildDirectory)
|
||||||
directoriesCheck = [ ]
|
directoriesCheck = [ ]
|
||||||
for panoplyCfg in MapPanoplySourceDirectories:
|
for panoplyCfg in MapPanoplySourceDirectories:
|
||||||
directoriesCheck += [ panoplyCfg[2] ]
|
directoriesCheck += [ panoplyCfg[2] ]
|
||||||
directoriesCheck += [ panoplyCfg[3] ]
|
directoriesCheck += [ panoplyCfg[3] ]
|
||||||
if (needUpdateMultiDirNoSubdirFile(log, DatabaseDirectory, directoriesCheck, buildPanoplyTagPath)):
|
if (needUpdateMultiDirNoSubdirFile(log, DatabaseDirectory, directoriesCheck, buildPanoplyTagPath)):
|
||||||
mkPath(log, ActiveProjectDirectory + "/generated")
|
mkPath(log, ActiveProjectDirectory + "/generated")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, ">>> Move panoply and hls to cache <<<")
|
printLog(log, ">>> Move panoply and hls to cache <<<")
|
||||||
removeFilesDirsRecursive(log, ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory)
|
removeFilesDirsRecursive(log, ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory)
|
||||||
moveDir(log, ExportBuildDirectory + "/" + MapPanoplyBuildDirectory, ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory)
|
moveDir(log, ExportBuildDirectory + "/" + MapPanoplyBuildDirectory, ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyBuildDirectory)
|
||||||
moveFilesNoSubdir(log, ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory, ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory)
|
moveFilesNoSubdir(log, ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory, ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
for panoplyCfg in MapPanoplySourceDirectories:
|
for panoplyCfg in MapPanoplySourceDirectories:
|
||||||
printLog(log, ">>> Panoply " + panoplyCfg[1] + " <<<")
|
printLog(log, ">>> Panoply " + panoplyCfg[1] + " <<<")
|
||||||
mkPath(log, DatabaseDirectory + "/" + panoplyCfg[2])
|
mkPath(log, DatabaseDirectory + "/" + panoplyCfg[2])
|
||||||
mkPath(log, DatabaseDirectory + "/" + panoplyCfg[3])
|
mkPath(log, DatabaseDirectory + "/" + panoplyCfg[3])
|
||||||
cfg = open(ActiveProjectDirectory + "/generated/current_panoply.cfg", "w")
|
cfg = open(ActiveProjectDirectory + "/generated/current_panoply.cfg", "w")
|
||||||
cfgCommon = open(ActiveProjectDirectory + "/" + panoplyCfg[0], "r")
|
cfgCommon = open(ActiveProjectDirectory + "/" + panoplyCfg[0], "r")
|
||||||
cfgRace = open(ActiveProjectDirectory + "/" + panoplyCfg[1], "r")
|
cfgRace = open(ActiveProjectDirectory + "/" + panoplyCfg[1], "r")
|
||||||
cfg.write("\n")
|
cfg.write("\n")
|
||||||
cfg.write("// CURRENT PANOPLY CONFIGURATION\n")
|
cfg.write("// CURRENT PANOPLY CONFIGURATION\n")
|
||||||
cfg.write("\n")
|
cfg.write("\n")
|
||||||
cfg.write("input_path = \"" + DatabaseDirectory + "/" + panoplyCfg[2] + "\";\n")
|
cfg.write("input_path = \"" + DatabaseDirectory + "/" + panoplyCfg[2] + "\";\n")
|
||||||
cfg.write("additionnal_paths = \"" + DatabaseDirectory + "/" + panoplyCfg[3] + "\";\n")
|
cfg.write("additionnal_paths = \"" + DatabaseDirectory + "/" + panoplyCfg[3] + "\";\n")
|
||||||
cfg.write("output_path = \"" + ExportBuildDirectory + "/" + MapPanoplyBuildDirectory + "\";\n")
|
cfg.write("output_path = \"" + ExportBuildDirectory + "/" + MapPanoplyBuildDirectory + "\";\n")
|
||||||
cfg.write("hls_info_path = \"" + ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory + "\";\n")
|
cfg.write("hls_info_path = \"" + ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory + "\";\n")
|
||||||
cfg.write("cache_path = \"" + ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory + "\";\n")
|
cfg.write("cache_path = \"" + ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory + "\";\n")
|
||||||
cfg.write("\n")
|
cfg.write("\n")
|
||||||
cfg.write("/////////////////////////////////////////////\n")
|
cfg.write("/////////////////////////////////////////////\n")
|
||||||
cfg.write("\n")
|
cfg.write("\n")
|
||||||
for line in cfgCommon:
|
for line in cfgCommon:
|
||||||
cfg.write(line)
|
cfg.write(line)
|
||||||
for line in cfgRace:
|
for line in cfgRace:
|
||||||
cfg.write(line)
|
cfg.write(line)
|
||||||
cfg.close()
|
cfg.close()
|
||||||
cfgCommon.close()
|
cfgCommon.close()
|
||||||
cfgRace.close()
|
cfgRace.close()
|
||||||
subprocess.call([ PanoplyMaker, ActiveProjectDirectory + "/generated/current_panoply.cfg" ])
|
subprocess.call([ PanoplyMaker, ActiveProjectDirectory + "/generated/current_panoply.cfg" ])
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
tagFile = open(buildPanoplyTagPath, "w")
|
tagFile = open(buildPanoplyTagPath, "w")
|
||||||
tagFile.write(time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())) + "\n")
|
tagFile.write(time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())) + "\n")
|
||||||
tagFile.close()
|
tagFile.close()
|
||||||
else:
|
else:
|
||||||
printLog(log, "SKIP *.*")
|
printLog(log, "SKIP *.*")
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Compress TGA and PNG maps to DDS <<<")
|
printLog(log, ">>> Compress TGA and PNG maps to DDS <<<")
|
||||||
if TgaToDds == "":
|
if TgaToDds == "":
|
||||||
toolLogFail(log, TgaToDdsTool, ToolSuffix)
|
toolLogFail(log, TgaToDdsTool, ToolSuffix)
|
||||||
elif ExecTimeout == "":
|
elif ExecTimeout == "":
|
||||||
toolLogFail(log, ExecTimeoutTool, ToolSuffix)
|
toolLogFail(log, ExecTimeoutTool, ToolSuffix)
|
||||||
else:
|
else:
|
||||||
destPath = ExportBuildDirectory + "/" + MapBuildDirectory
|
destPath = ExportBuildDirectory + "/" + MapBuildDirectory
|
||||||
mkPath(log, destPath)
|
mkPath(log, destPath)
|
||||||
sourcePaths = [ ExportBuildDirectory + "/" + MapExportDirectory ]
|
sourcePaths = [ ExportBuildDirectory + "/" + MapExportDirectory ]
|
||||||
writeTag = 0
|
writeTag = 0
|
||||||
if MapPanoplyFileList != None:
|
if MapPanoplyFileList != None:
|
||||||
if needUpdate(log, buildPanoplyTagPath, buildCompressTagPath):
|
if needUpdate(log, buildPanoplyTagPath, buildCompressTagPath):
|
||||||
sourcePaths += [ ExportBuildDirectory + "/" + MapPanoplyBuildDirectory ]
|
sourcePaths += [ ExportBuildDirectory + "/" + MapPanoplyBuildDirectory ]
|
||||||
else:
|
else:
|
||||||
printLog(log, "SKIP " + ExportBuildDirectory + "/" + MapPanoplyBuildDirectory + "/*.*")
|
printLog(log, "SKIP " + ExportBuildDirectory + "/" + MapPanoplyBuildDirectory + "/*.*")
|
||||||
for sourcePath in sourcePaths:
|
for sourcePath in sourcePaths:
|
||||||
mkPath(log, sourcePath)
|
mkPath(log, sourcePath)
|
||||||
files = os.listdir(sourcePath)
|
files = os.listdir(sourcePath)
|
||||||
len_tga_png = len(".tga")
|
len_tga_png = len(".tga")
|
||||||
len_dds = len(".dds")
|
len_dds = len(".dds")
|
||||||
for fileName in files:
|
for fileName in files:
|
||||||
if isLegalFileName(fileName):
|
if isLegalFileName(fileName):
|
||||||
sourceFile = sourcePath + "/" + fileName
|
sourceFile = sourcePath + "/" + fileName
|
||||||
if os.path.isfile(sourceFile):
|
if os.path.isfile(sourceFile):
|
||||||
if (fileName[-len_tga_png:].lower() == ".tga") or (fileName[-len_tga_png:].lower() == ".png"):
|
if (fileName[-len_tga_png:].lower() == ".tga") or (fileName[-len_tga_png:].lower() == ".png"):
|
||||||
destFile = destPath + "/" + os.path.basename(fileName)[0:-len_tga_png] + ".dds"
|
destFile = destPath + "/" + os.path.basename(fileName)[0:-len_tga_png] + ".dds"
|
||||||
if needUpdateLogRemoveDest(log, sourceFile, destFile):
|
if needUpdateLogRemoveDest(log, sourceFile, destFile):
|
||||||
subprocess.call([ ExecTimeout, str(MapsBuildTimeout), TgaToDds, sourceFile, "-o", destFile, "-m", "-r" + str(ReduceBitmapFactor) ])
|
subprocess.call([ ExecTimeout, str(MapsBuildTimeout), TgaToDds, sourceFile, "-o", destFile, "-m", "-r" + str(ReduceBitmapFactor) ])
|
||||||
writeTag = 1
|
writeTag = 1
|
||||||
elif fileName[-len_dds:].lower() == ".dds":
|
elif fileName[-len_dds:].lower() == ".dds":
|
||||||
copyFileIfNeeded(log, sourceFile, destPath + "/" + os.path.basename(fileName))
|
copyFileIfNeeded(log, sourceFile, destPath + "/" + os.path.basename(fileName))
|
||||||
writeTag = 1
|
writeTag = 1
|
||||||
elif not os.path.isdir(sourceFile):
|
elif not os.path.isdir(sourceFile):
|
||||||
printLog(log, "FAIL ?! file not dir or file ?! " + sourceFile)
|
printLog(log, "FAIL ?! file not dir or file ?! " + sourceFile)
|
||||||
if writeTag:
|
if writeTag:
|
||||||
tagFile = open(buildCompressTagPath, "w")
|
tagFile = open(buildCompressTagPath, "w")
|
||||||
tagFile.write(time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())) + "\n")
|
tagFile.write(time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())) + "\n")
|
||||||
tagFile.close()
|
tagFile.close()
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
if MapHlsBankFileName != None:
|
if MapHlsBankFileName != None:
|
||||||
printLog(log, ">>> Build the HLSBank <<<")
|
printLog(log, ">>> Build the HLSBank <<<")
|
||||||
if HlsBankMaker == "":
|
if HlsBankMaker == "":
|
||||||
toolLogFail(log, HlsBankMakerTool, ToolSuffix)
|
toolLogFail(log, HlsBankMakerTool, ToolSuffix)
|
||||||
else:
|
else:
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyHlsBankBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapPanoplyHlsBankBuildDirectory)
|
||||||
hlsBankPath = ExportBuildDirectory + "/" + MapPanoplyHlsBankBuildDirectory + "/" + MapHlsBankFileName
|
hlsBankPath = ExportBuildDirectory + "/" + MapPanoplyHlsBankBuildDirectory + "/" + MapHlsBankFileName
|
||||||
if (needUpdate(log, buildPanoplyTagPath, hlsBankPath) or needUpdate(log, buildCompressTagPath, hlsBankPath)):
|
if (needUpdate(log, buildPanoplyTagPath, hlsBankPath) or needUpdate(log, buildCompressTagPath, hlsBankPath)):
|
||||||
if os.path.isfile(hlsBankPath):
|
if os.path.isfile(hlsBankPath):
|
||||||
os.remove(hlsBankPath)
|
os.remove(hlsBankPath)
|
||||||
subprocess.call([ HlsBankMaker, ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory, hlsBankPath ])
|
subprocess.call([ HlsBankMaker, ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory, hlsBankPath ])
|
||||||
else:
|
else:
|
||||||
printLog(log,"SKIP " + hlsBankPath)
|
printLog(log,"SKIP " + hlsBankPath)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,91 +1,91 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install map
|
# \brief Install map
|
||||||
# \date 2009-03-10 13:13GMT
|
# \date 2009-03-10 13:13GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install map
|
# Install map
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install map")
|
printLog(log, "--- Install map")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
installPath = InstallDirectory + "/" + MapInstallDirectory
|
installPath = InstallDirectory + "/" + MapInstallDirectory
|
||||||
mkPath(log, installPath)
|
mkPath(log, installPath)
|
||||||
|
|
||||||
printLog(log, ">>> Install map <<<")
|
printLog(log, ">>> Install map <<<")
|
||||||
sourcePaths = [ ExportBuildDirectory + "/" + MapBuildDirectory ] + [ ExportBuildDirectory + "/" + MapUncompressedExportDirectory ]
|
sourcePaths = [ ExportBuildDirectory + "/" + MapBuildDirectory ] + [ ExportBuildDirectory + "/" + MapUncompressedExportDirectory ]
|
||||||
for sourcePath in sourcePaths:
|
for sourcePath in sourcePaths:
|
||||||
mkPath(log, sourcePath)
|
mkPath(log, sourcePath)
|
||||||
files = os.listdir(sourcePath)
|
files = os.listdir(sourcePath)
|
||||||
len_ext = 4
|
len_ext = 4
|
||||||
for fileName in files:
|
for fileName in files:
|
||||||
if isLegalFileName(fileName):
|
if isLegalFileName(fileName):
|
||||||
sourceFile = sourcePath + "/" + fileName
|
sourceFile = sourcePath + "/" + fileName
|
||||||
if os.path.isfile(sourceFile):
|
if os.path.isfile(sourceFile):
|
||||||
if (fileName[-len_ext:].lower() == ".tga") or (fileName[-len_ext:].lower() == ".png") or (fileName[-len_ext:].lower() == ".dds"):
|
if (fileName[-len_ext:].lower() == ".tga") or (fileName[-len_ext:].lower() == ".png") or (fileName[-len_ext:].lower() == ".dds"):
|
||||||
copyFileIfNeeded(log, sourceFile, installPath + "/" + os.path.basename(fileName))
|
copyFileIfNeeded(log, sourceFile, installPath + "/" + os.path.basename(fileName))
|
||||||
elif not os.path.isdir(sourceFile):
|
elif not os.path.isdir(sourceFile):
|
||||||
printLog(log, "FAIL ?! file not dir or file ?! " + sourceFile)
|
printLog(log, "FAIL ?! file not dir or file ?! " + sourceFile)
|
||||||
|
|
||||||
if MapPanoplyFileList != None:
|
if MapPanoplyFileList != None:
|
||||||
printLog(log, ">>> Install panoply file list <<<")
|
printLog(log, ">>> Install panoply file list <<<")
|
||||||
buildPanoplyTagPath = ExportBuildDirectory + "/" + MapTagBuildDirectory + "/build_panoply.tag"
|
buildPanoplyTagPath = ExportBuildDirectory + "/" + MapTagBuildDirectory + "/build_panoply.tag"
|
||||||
mkPath(log, ExportBuildDirectory + "/" + MapTagBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + MapTagBuildDirectory)
|
||||||
if needUpdate(log, buildPanoplyTagPath, installPath + "/" + MapPanoplyFileList):
|
if needUpdate(log, buildPanoplyTagPath, installPath + "/" + MapPanoplyFileList):
|
||||||
sourcePath = ExportBuildDirectory + "/" + MapPanoplyBuildDirectory
|
sourcePath = ExportBuildDirectory + "/" + MapPanoplyBuildDirectory
|
||||||
mkPath(log, sourcePath)
|
mkPath(log, sourcePath)
|
||||||
printLog(log, "WRITE " + installPath + "/" + MapPanoplyFileList)
|
printLog(log, "WRITE " + installPath + "/" + MapPanoplyFileList)
|
||||||
lf = open(installPath + "/" + MapPanoplyFileList, "w")
|
lf = open(installPath + "/" + MapPanoplyFileList, "w")
|
||||||
files = os.listdir(sourcePath)
|
files = os.listdir(sourcePath)
|
||||||
for file in files:
|
for file in files:
|
||||||
if isLegalFileName(file):
|
if isLegalFileName(file):
|
||||||
lf.write(file + "\n")
|
lf.write(file + "\n")
|
||||||
lf.close()
|
lf.close()
|
||||||
else:
|
else:
|
||||||
printLog(log, "SKIP " + installPath + "/" + MapPanoplyBuildDirectory)
|
printLog(log, "SKIP " + installPath + "/" + MapPanoplyBuildDirectory)
|
||||||
|
|
||||||
if MapHlsBankFileName != None:
|
if MapHlsBankFileName != None:
|
||||||
printLog(log, ">>> Install map hlsbank <<<")
|
printLog(log, ">>> Install map hlsbank <<<")
|
||||||
sourcePath = ExportBuildDirectory + "/" + MapPanoplyHlsBankBuildDirectory
|
sourcePath = ExportBuildDirectory + "/" + MapPanoplyHlsBankBuildDirectory
|
||||||
mkPath(log, sourcePath)
|
mkPath(log, sourcePath)
|
||||||
copyFilesExtNoSubdirIfNeeded(log, sourcePath, installPath, ".hlsbank")
|
copyFilesExtNoSubdirIfNeeded(log, sourcePath, installPath, ".hlsbank")
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,65 +1,65 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief setup pacs_prim
|
# \brief setup pacs_prim
|
||||||
# \date 2010-08-31 16:50GMT
|
# \date 2010-08-31 16:50GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup pacs_prim
|
# Setup pacs_prim
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup pacs_prim")
|
printLog(log, "--- Setup pacs_prim")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dir in PacsPrimSourceDirectories:
|
for dir in PacsPrimSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
|
||||||
# Setup export directories
|
# Setup export directories
|
||||||
printLog(log, ">>> Setup export directories <<<")
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + PacsPrimExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + PacsPrimExportDirectory)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + PacsPrimInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + PacsPrimInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,146 +1,146 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# #################################################################
|
# #################################################################
|
||||||
# ## WARNING : this is a generated file, don't change it !
|
# ## WARNING : this is a generated file, don't change it !
|
||||||
# #################################################################
|
# #################################################################
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export pacs_prim
|
# \brief Export pacs_prim
|
||||||
# \date 2015-01-06-16-31-GMT
|
# \date 2015-01-06-16-31-GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export pacs_prim
|
# Export pacs_prim
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
if os.path.isfile("temp_log.log"):
|
if os.path.isfile("temp_log.log"):
|
||||||
os.remove("temp_log.log")
|
os.remove("temp_log.log")
|
||||||
log = open("temp_log.log", "w")
|
log = open("temp_log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export pacs_prim")
|
printLog(log, "--- Export pacs_prim")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
# Find tools
|
# Find tools
|
||||||
# ...
|
# ...
|
||||||
|
|
||||||
# Export pacs_prim 3dsmax
|
# Export pacs_prim 3dsmax
|
||||||
if MaxAvailable:
|
if MaxAvailable:
|
||||||
# Find tools
|
# Find tools
|
||||||
Max = findMax(log, MaxDirectory, MaxExecutable)
|
Max = findMax(log, MaxDirectory, MaxExecutable)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Export pacs_prim 3dsmax <<<")
|
printLog(log, ">>> Export pacs_prim 3dsmax <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + PacsPrimExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + PacsPrimExportDirectory)
|
||||||
mkPath(log, ExportBuildDirectory + "/" + PacsPrimTagExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + PacsPrimTagExportDirectory)
|
||||||
for dir in PacsPrimSourceDirectories:
|
for dir in PacsPrimSourceDirectories:
|
||||||
mkPath(log, DatabaseDirectory + "/" + dir)
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + dir, ".max", ExportBuildDirectory + "/" + PacsPrimTagExportDirectory, ".max.tag")):
|
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + dir, ".max", ExportBuildDirectory + "/" + PacsPrimTagExportDirectory, ".max.tag")):
|
||||||
scriptSrc = "maxscript/pacs_prim_export.ms"
|
scriptSrc = "maxscript/pacs_prim_export.ms"
|
||||||
scriptDst = MaxUserDirectory + "/scripts/pacs_prim_export.ms"
|
scriptDst = MaxUserDirectory + "/scripts/pacs_prim_export.ms"
|
||||||
outputLogfile = ScriptDirectory + "/processes/pacs_prim/log.log"
|
outputLogfile = ScriptDirectory + "/processes/pacs_prim/log.log"
|
||||||
outputDirectory = ExportBuildDirectory + "/" + PacsPrimExportDirectory
|
outputDirectory = ExportBuildDirectory + "/" + PacsPrimExportDirectory
|
||||||
tagDirectory = ExportBuildDirectory + "/" + PacsPrimTagExportDirectory
|
tagDirectory = ExportBuildDirectory + "/" + PacsPrimTagExportDirectory
|
||||||
maxSourceDir = DatabaseDirectory + "/" + dir
|
maxSourceDir = DatabaseDirectory + "/" + dir
|
||||||
maxRunningTagFile = tagDirectory + "/max_running.tag"
|
maxRunningTagFile = tagDirectory + "/max_running.tag"
|
||||||
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
||||||
tagLen = len(tagList)
|
tagLen = len(tagList)
|
||||||
if os.path.isfile(scriptDst):
|
if os.path.isfile(scriptDst):
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
tagDiff = 1
|
tagDiff = 1
|
||||||
sSrc = open(scriptSrc, "r")
|
sSrc = open(scriptSrc, "r")
|
||||||
sDst = open(scriptDst, "w")
|
sDst = open(scriptDst, "w")
|
||||||
for line in sSrc:
|
for line in sSrc:
|
||||||
newline = line.replace("%OutputLogfile%", outputLogfile)
|
newline = line.replace("%OutputLogfile%", outputLogfile)
|
||||||
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
||||||
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
||||||
newline = newline.replace("%TagDirectory%", tagDirectory)
|
newline = newline.replace("%TagDirectory%", tagDirectory)
|
||||||
sDst.write(newline)
|
sDst.write(newline)
|
||||||
sSrc.close()
|
sSrc.close()
|
||||||
sDst.close()
|
sDst.close()
|
||||||
zeroRetryLimit = 3
|
zeroRetryLimit = 3
|
||||||
while tagDiff > 0:
|
while tagDiff > 0:
|
||||||
mrt = open(maxRunningTagFile, "w")
|
mrt = open(maxRunningTagFile, "w")
|
||||||
mrt.write("moe-moe-kyun")
|
mrt.write("moe-moe-kyun")
|
||||||
mrt.close()
|
mrt.close()
|
||||||
printLog(log, "MAXSCRIPT " + scriptDst)
|
printLog(log, "MAXSCRIPT " + scriptDst)
|
||||||
subprocess.call([ Max, "-U", "MAXScript", "pacs_prim_export.ms", "-q", "-mi", "-mip" ])
|
subprocess.call([ Max, "-U", "MAXScript", "pacs_prim_export.ms", "-q", "-mi", "-mip" ])
|
||||||
if os.path.exists(outputLogfile):
|
if os.path.exists(outputLogfile):
|
||||||
try:
|
try:
|
||||||
lSrc = open(outputLogfile, "r")
|
lSrc = open(outputLogfile, "r")
|
||||||
for line in lSrc:
|
for line in lSrc:
|
||||||
lineStrip = line.strip()
|
lineStrip = line.strip()
|
||||||
if (len(lineStrip) > 0):
|
if (len(lineStrip) > 0):
|
||||||
printLog(log, lineStrip)
|
printLog(log, lineStrip)
|
||||||
lSrc.close()
|
lSrc.close()
|
||||||
os.remove(outputLogfile)
|
os.remove(outputLogfile)
|
||||||
except Exception:
|
except Exception:
|
||||||
printLog(log, "ERROR Failed to read 3dsmax log")
|
printLog(log, "ERROR Failed to read 3dsmax log")
|
||||||
else:
|
else:
|
||||||
printLog(log, "WARNING No 3dsmax log")
|
printLog(log, "WARNING No 3dsmax log")
|
||||||
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
||||||
newTagLen = len(tagList)
|
newTagLen = len(tagList)
|
||||||
tagDiff = newTagLen - tagLen
|
tagDiff = newTagLen - tagLen
|
||||||
tagLen = newTagLen
|
tagLen = newTagLen
|
||||||
addTagDiff = 0
|
addTagDiff = 0
|
||||||
if os.path.exists(maxRunningTagFile):
|
if os.path.exists(maxRunningTagFile):
|
||||||
printLog(log, "FAIL 3ds Max crashed and/or file export failed!")
|
printLog(log, "FAIL 3ds Max crashed and/or file export failed!")
|
||||||
if tagDiff == 0:
|
if tagDiff == 0:
|
||||||
if zeroRetryLimit > 0:
|
if zeroRetryLimit > 0:
|
||||||
zeroRetryLimit = zeroRetryLimit - 1
|
zeroRetryLimit = zeroRetryLimit - 1
|
||||||
addTagDiff = 1
|
addTagDiff = 1
|
||||||
else:
|
else:
|
||||||
printLog(log, "FAIL Retry limit reached!")
|
printLog(log, "FAIL Retry limit reached!")
|
||||||
else:
|
else:
|
||||||
addTagDiff = 1
|
addTagDiff = 1
|
||||||
os.remove(maxRunningTagFile)
|
os.remove(maxRunningTagFile)
|
||||||
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
||||||
tagDiff += addTagDiff
|
tagDiff += addTagDiff
|
||||||
os.remove(scriptDst)
|
os.remove(scriptDst)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Remove bad file from previous script version
|
# Remove bad file from previous script version
|
||||||
listPath = ExportBuildDirectory + "/" + PacsPrimExportDirectory + "/landscape_col_prim_pacs_list.txt"
|
listPath = ExportBuildDirectory + "/" + PacsPrimExportDirectory + "/landscape_col_prim_pacs_list.txt"
|
||||||
if os.path.isfile(listPath):
|
if os.path.isfile(listPath):
|
||||||
os.remove(listPath)
|
os.remove(listPath)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
shutil.move("temp_log.log", "log.log")
|
shutil.move("temp_log.log", "log.log")
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,49 +1,49 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build pacs_prim
|
# \brief Build pacs_prim
|
||||||
# \date 2010-08-31 16:50GMT
|
# \date 2010-08-31 16:50GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build pacs_prim
|
# Build pacs_prim
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build pacs_prim")
|
printLog(log, "--- Build pacs_prim")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,57 +1,57 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install pacs_prim
|
# \brief Install pacs_prim
|
||||||
# \date 2010-08-31 16:50GMT
|
# \date 2010-08-31 16:50GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install pacs_prim
|
# Install pacs_prim
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install pacs_prim")
|
printLog(log, "--- Install pacs_prim")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
installPath = InstallDirectory + "/" + PacsPrimInstallDirectory
|
installPath = InstallDirectory + "/" + PacsPrimInstallDirectory
|
||||||
mkPath(log, installPath)
|
mkPath(log, installPath)
|
||||||
|
|
||||||
printLog(log, ">>> Install pacs_prim <<<")
|
printLog(log, ">>> Install pacs_prim <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + PacsPrimExportDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + PacsPrimExportDirectory)
|
||||||
copyFilesExtNoSubdirIfNeeded(log, ExportBuildDirectory + "/" + PacsPrimExportDirectory, installPath, ".pacs_prim")
|
copyFilesExtNoSubdirIfNeeded(log, ExportBuildDirectory + "/" + PacsPrimExportDirectory, installPath, ".pacs_prim")
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,62 +1,62 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief setup pacs_prim_list
|
# \brief setup pacs_prim_list
|
||||||
# \date 2011-09-28 7:22GMT
|
# \date 2011-09-28 7:22GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup pacs_prim_list
|
# Setup pacs_prim_list
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup pacs_prim_list")
|
printLog(log, "--- Setup pacs_prim_list")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
# Setup source directories
|
# Setup source directories
|
||||||
printLog(log, ">>> Setup source directories <<<")
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
for dir in PacsPrimExportSourceDirectories:
|
for dir in PacsPrimExportSourceDirectories:
|
||||||
mkPath(log, ExportBuildDirectory + "/" + dir)
|
mkPath(log, ExportBuildDirectory + "/" + dir)
|
||||||
|
|
||||||
# Setup build directories
|
# Setup build directories
|
||||||
printLog(log, ">>> Setup build directories <<<")
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
mkPath(log, ExportBuildDirectory + "/" + PacsPrimListBuildDirectory)
|
mkPath(log, ExportBuildDirectory + "/" + PacsPrimListBuildDirectory)
|
||||||
|
|
||||||
# Setup client directories
|
# Setup client directories
|
||||||
printLog(log, ">>> Setup client directories <<<")
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
mkPath(log, InstallDirectory + "/" + PacsPrimListInstallDirectory)
|
mkPath(log, InstallDirectory + "/" + PacsPrimListInstallDirectory)
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,53 +1,53 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export pacs_prim_list
|
# \brief Export pacs_prim_list
|
||||||
# \date 2011-09-28 7:22GMT
|
# \date 2011-09-28 7:22GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export pacs_prim_list
|
# Export pacs_prim_list
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Export pacs_prim_list")
|
printLog(log, "--- Export pacs_prim_list")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Nothing to do! <<<")
|
printLog(log, ">>> Nothing to do! <<<")
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,63 +1,63 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build pacs_prim_list
|
# \brief Build pacs_prim_list
|
||||||
# \date 2011-09-28 7:22GMT
|
# \date 2011-09-28 7:22GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build pacs_prim_list
|
# Build pacs_prim_list
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Build pacs_prim_list")
|
printLog(log, "--- Build pacs_prim_list")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> List pacs_prim <<<")
|
printLog(log, ">>> List pacs_prim <<<")
|
||||||
listPath = ExportBuildDirectory + "/" + PacsPrimListBuildDirectory + "/landscape_col_prim_pacs_list.txt"
|
listPath = ExportBuildDirectory + "/" + PacsPrimListBuildDirectory + "/landscape_col_prim_pacs_list.txt"
|
||||||
if os.path.isfile(listPath):
|
if os.path.isfile(listPath):
|
||||||
os.remove(listPath)
|
os.remove(listPath)
|
||||||
listFile = open(listPath, "w")
|
listFile = open(listPath, "w")
|
||||||
printLog(log, "WRITE " + listPath)
|
printLog(log, "WRITE " + listPath)
|
||||||
for dir in PacsPrimExportSourceDirectories:
|
for dir in PacsPrimExportSourceDirectories:
|
||||||
outDirPacsPrim = ExportBuildDirectory + "/" + dir
|
outDirPacsPrim = ExportBuildDirectory + "/" + dir
|
||||||
mkPath(log, outDirPacsPrim)
|
mkPath(log, outDirPacsPrim)
|
||||||
exportedPacsPrims = findFiles(log, outDirPacsPrim, "", ".pacs_prim")
|
exportedPacsPrims = findFiles(log, outDirPacsPrim, "", ".pacs_prim")
|
||||||
for exported in exportedPacsPrims:
|
for exported in exportedPacsPrims:
|
||||||
listFile.write(exported + "\n")
|
listFile.write(exported + "\n")
|
||||||
listFile.close()
|
listFile.close()
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,55 +1,55 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 3_install.py
|
# \file 3_install.py
|
||||||
# \brief Install pacs_prim_list
|
# \brief Install pacs_prim_list
|
||||||
# \date 2011-09-28 7:22GMT
|
# \date 2011-09-28 7:22GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Install pacs_prim_list
|
# Install pacs_prim_list
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite_local import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install pacs_prim_list")
|
printLog(log, "--- Install pacs_prim_list")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
printLog(log, ">>> Install pacs_prim_list <<<")
|
printLog(log, ">>> Install pacs_prim_list <<<")
|
||||||
installPath = InstallDirectory + "/" + PacsPrimListInstallDirectory
|
installPath = InstallDirectory + "/" + PacsPrimListInstallDirectory
|
||||||
mkPath(log, installPath)
|
mkPath(log, installPath)
|
||||||
copyFileIfNeeded(log, ExportBuildDirectory + "/" + PacsPrimListBuildDirectory + "/landscape_col_prim_pacs_list.txt", installPath + "/landscape_col_prim_pacs_list.txt")
|
copyFileIfNeeded(log, ExportBuildDirectory + "/" + PacsPrimListBuildDirectory + "/landscape_col_prim_pacs_list.txt", installPath + "/landscape_col_prim_pacs_list.txt")
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,141 +1,141 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 0_setup.py
|
# \file 0_setup.py
|
||||||
# \brief setup properties
|
# \brief setup properties
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Setup properties
|
# Setup properties
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Setup properties")
|
printLog(log, "--- Setup properties")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
mkPath(log, ActiveProjectDirectory + "/generated")
|
mkPath(log, ActiveProjectDirectory + "/generated")
|
||||||
zlp = open(ActiveProjectDirectory + "/generated/properties.cfg", "w")
|
zlp = open(ActiveProjectDirectory + "/generated/properties.cfg", "w")
|
||||||
zlp.write("\n")
|
zlp.write("\n")
|
||||||
zlp.write("// Search pathes\n")
|
zlp.write("// Search pathes\n")
|
||||||
zlp.write("search_pathes = \n")
|
zlp.write("search_pathes = \n")
|
||||||
zlp.write("{\n")
|
zlp.write("{\n")
|
||||||
for searchPath in PropertiesExportBuildSearchPaths:
|
for searchPath in PropertiesExportBuildSearchPaths:
|
||||||
zlp.write("\t\"" + ExportBuildDirectory + "/" + searchPath + "\",\n")
|
zlp.write("\t\"" + ExportBuildDirectory + "/" + searchPath + "\",\n")
|
||||||
zlp.write("};\n")
|
zlp.write("};\n")
|
||||||
zlp.write("\n")
|
zlp.write("\n")
|
||||||
ps = open(ActiveProjectDirectory + "/properties_base.cfg", "r")
|
ps = open(ActiveProjectDirectory + "/properties_base.cfg", "r")
|
||||||
for line in ps:
|
for line in ps:
|
||||||
try:
|
try:
|
||||||
SmallbankExportDirectory
|
SmallbankExportDirectory
|
||||||
except NameError:
|
except NameError:
|
||||||
SmallbankExportDirectory = "_invalid"
|
SmallbankExportDirectory = "_invalid"
|
||||||
try:
|
try:
|
||||||
FarbankBuildDirectory
|
FarbankBuildDirectory
|
||||||
except NameError:
|
except NameError:
|
||||||
FarbankBuildDirectory = "_invalid"
|
FarbankBuildDirectory = "_invalid"
|
||||||
try:
|
try:
|
||||||
EcosystemName
|
EcosystemName
|
||||||
except NameError:
|
except NameError:
|
||||||
EcosystemName = "_invalid"
|
EcosystemName = "_invalid"
|
||||||
try:
|
try:
|
||||||
EcosystemPath
|
EcosystemPath
|
||||||
except NameError:
|
except NameError:
|
||||||
EcosystemPath = "_invalid"
|
EcosystemPath = "_invalid"
|
||||||
try:
|
try:
|
||||||
ContinentName
|
ContinentName
|
||||||
except NameError:
|
except NameError:
|
||||||
ContinentName = "_invalid"
|
ContinentName = "_invalid"
|
||||||
try:
|
try:
|
||||||
ContinentPath
|
ContinentPath
|
||||||
except NameError:
|
except NameError:
|
||||||
ContinentPath = "_invalid"
|
ContinentPath = "_invalid"
|
||||||
try:
|
try:
|
||||||
ContinentSheet
|
ContinentSheet
|
||||||
except NameError:
|
except NameError:
|
||||||
ContinentSheet = ContinentName
|
ContinentSheet = ContinentName
|
||||||
try:
|
try:
|
||||||
BankTileBankName
|
BankTileBankName
|
||||||
except NameError:
|
except NameError:
|
||||||
BankTileBankName = "_invalid"
|
BankTileBankName = "_invalid"
|
||||||
try:
|
try:
|
||||||
IgLandBuildDirectory
|
IgLandBuildDirectory
|
||||||
except NameError:
|
except NameError:
|
||||||
IgLandBuildDirectory = "_invalid"
|
IgLandBuildDirectory = "_invalid"
|
||||||
try:
|
try:
|
||||||
IgOtherBuildDirectory
|
IgOtherBuildDirectory
|
||||||
except NameError:
|
except NameError:
|
||||||
IgOtherBuildDirectory = "_invalid"
|
IgOtherBuildDirectory = "_invalid"
|
||||||
try:
|
try:
|
||||||
RbankOutputBuildDirectory
|
RbankOutputBuildDirectory
|
||||||
except NameError:
|
except NameError:
|
||||||
RbankOutputBuildDirectory = "_invalid"
|
RbankOutputBuildDirectory = "_invalid"
|
||||||
try:
|
try:
|
||||||
RbankRbankName
|
RbankRbankName
|
||||||
except NameError:
|
except NameError:
|
||||||
RbankRbankName = "_invalid"
|
RbankRbankName = "_invalid"
|
||||||
newline = line.replace("%ExportBuildDirectory%", ExportBuildDirectory)
|
newline = line.replace("%ExportBuildDirectory%", ExportBuildDirectory)
|
||||||
newline = newline.replace("%LeveldesignDirectory%", LeveldesignDirectory)
|
newline = newline.replace("%LeveldesignDirectory%", LeveldesignDirectory)
|
||||||
newline = newline.replace("%LeveldesignWorldDirectory%", LeveldesignWorldDirectory)
|
newline = newline.replace("%LeveldesignWorldDirectory%", LeveldesignWorldDirectory)
|
||||||
newline = newline.replace("%LeveldesignDfnDirectory%", LeveldesignDfnDirectory)
|
newline = newline.replace("%LeveldesignDfnDirectory%", LeveldesignDfnDirectory)
|
||||||
newline = newline.replace("%SmallbankExportDirectory%", SmallbankExportDirectory)
|
newline = newline.replace("%SmallbankExportDirectory%", SmallbankExportDirectory)
|
||||||
newline = newline.replace("%FarbankBuildDirectory%", FarbankBuildDirectory)
|
newline = newline.replace("%FarbankBuildDirectory%", FarbankBuildDirectory)
|
||||||
newline = newline.replace("%EcosystemName%", EcosystemName)
|
newline = newline.replace("%EcosystemName%", EcosystemName)
|
||||||
newline = newline.replace("%EcosystemPath%", EcosystemPath)
|
newline = newline.replace("%EcosystemPath%", EcosystemPath)
|
||||||
newline = newline.replace("%ContinentName%", ContinentName)
|
newline = newline.replace("%ContinentName%", ContinentName)
|
||||||
newline = newline.replace("%ContinentPath%", ContinentPath)
|
newline = newline.replace("%ContinentPath%", ContinentPath)
|
||||||
newline = newline.replace("%CommonName%", CommonName)
|
newline = newline.replace("%CommonName%", CommonName)
|
||||||
newline = newline.replace("%CommonPath%", CommonPath)
|
newline = newline.replace("%CommonPath%", CommonPath)
|
||||||
newline = newline.replace("%ContinentSheet%", ContinentSheet)
|
newline = newline.replace("%ContinentSheet%", ContinentSheet)
|
||||||
newline = newline.replace("%BankTileBankName%", BankTileBankName)
|
newline = newline.replace("%BankTileBankName%", BankTileBankName)
|
||||||
newline = newline.replace("%IgLandBuildDirectory%", IgLandBuildDirectory)
|
newline = newline.replace("%IgLandBuildDirectory%", IgLandBuildDirectory)
|
||||||
newline = newline.replace("%IgOtherBuildDirectory%", IgOtherBuildDirectory)
|
newline = newline.replace("%IgOtherBuildDirectory%", IgOtherBuildDirectory)
|
||||||
newline = newline.replace("%RbankOutputBuildDirectory%", RbankOutputBuildDirectory)
|
newline = newline.replace("%RbankOutputBuildDirectory%", RbankOutputBuildDirectory)
|
||||||
newline = newline.replace("%RbankRbankName%", RbankRbankName)
|
newline = newline.replace("%RbankRbankName%", RbankRbankName)
|
||||||
newline = newline.replace("%BuildQuality%", str(BuildQuality))
|
newline = newline.replace("%BuildQuality%", str(BuildQuality))
|
||||||
zlp.write(newline)
|
zlp.write(newline)
|
||||||
ps.close()
|
ps.close()
|
||||||
if (BuildQuality == 1):
|
if (BuildQuality == 1):
|
||||||
ps = open(ActiveProjectDirectory + "/properties_final.cfg", "r")
|
ps = open(ActiveProjectDirectory + "/properties_final.cfg", "r")
|
||||||
else:
|
else:
|
||||||
ps = open(ActiveProjectDirectory + "/properties_draft.cfg", "r")
|
ps = open(ActiveProjectDirectory + "/properties_draft.cfg", "r")
|
||||||
for line in ps:
|
for line in ps:
|
||||||
zlp.write(line)
|
zlp.write(line)
|
||||||
zlp.close()
|
zlp.close()
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,44 +1,44 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 1_export.py
|
# \file 1_export.py
|
||||||
# \brief Export properties
|
# \brief Export properties
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Export properties
|
# Export properties
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
@ -1,42 +1,42 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 2_build.py
|
# \file 2_build.py
|
||||||
# \brief Build properties
|
# \brief Build properties
|
||||||
# \date 2010-05-24 13:42GMT
|
# \date 2010-05-24 13:42GMT
|
||||||
# \author Jan Boon (Kaetemi)
|
# \author Jan Boon (Kaetemi)
|
||||||
# Python port of game data build pipeline.
|
# Python port of game data build pipeline.
|
||||||
# Build properties
|
# Build properties
|
||||||
#
|
#
|
||||||
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
# Copyright (C) 2009-2014 by authors
|
# Copyright (C) 2009-2014 by authors
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
# published by the Free Software Foundation, either version 3 of the
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
# License, or (at your option) any later version.
|
# License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Affero General Public License for more details.
|
# GNU Affero General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import time, sys, os, shutil, subprocess, distutils.dir_util
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
sys.path.append("../../configuration")
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
if os.path.isfile("log.log"):
|
if os.path.isfile("log.log"):
|
||||||
os.remove("log.log")
|
os.remove("log.log")
|
||||||
log = open("log.log", "w")
|
log = open("log.log", "w")
|
||||||
from scripts import *
|
from scripts import *
|
||||||
from buildsite import *
|
from buildsite import *
|
||||||
from process import *
|
from process import *
|
||||||
from tools import *
|
from tools import *
|
||||||
from directories import *
|
from directories import *
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
# end of file
|
# end of file
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue