Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / build_gamedata / processes / map / 0_setup.py
blob25d54d24d1a286facf18d1ef3b7752ad054d13fd
1 #!/usr/bin/python
2 #
3 # \file 0_setup.py
4 # \brief Setup map
5 # \date 2009-03-10 14:56GMT
6 # \author Jan Boon (Kaetemi)
7 # Python port of game data build pipeline.
8 # Setup map
9 #
10 # NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
11 # Copyright (C) 2009-2014 by authors
13 # This program is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU Affero General Public License as
15 # published by the Free Software Foundation, either version 3 of the
16 # License, or (at your option) any later version.
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU Affero General Public License for more details.
23 # You should have received a copy of the GNU Affero General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
27 import time, sys, os, shutil, subprocess, distutils.dir_util
28 sys.path.append("../../configuration")
30 if os.path.isfile("log.log"):
31 os.remove("log.log")
32 log = open("log.log", "w")
33 from scripts import *
34 from buildsite import *
35 from process import *
36 from tools import *
37 from directories import *
39 printLog(log, "")
40 printLog(log, "-------")
41 printLog(log, "--- Setup map")
42 printLog(log, "-------")
43 printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
44 printLog(log, "")
46 # Setup source directories
47 printLog(log, ">>> Setup source directories <<<")
48 for dir in MapSourceDirectories:
49 mkPath(log, DatabaseDirectory + "/" + dir)
50 for dir in MapUncompressedSourceDirectories:
51 mkPath(log, DatabaseDirectory + "/" + dir)
52 if MapHlsBankFileName != None or MapPanoplyFileList != None:
53 for panoplyCfg in MapPanoplySourceDirectories:
54 mkPath(log, DatabaseDirectory + "/" + panoplyCfg[2])
55 mkPath(log, DatabaseDirectory + "/" + panoplyCfg[3])
57 # Setup export directories
58 printLog(log, ">>> Setup export directories <<<")
59 mkPath(log, ExportBuildDirectory + "/" + MapExportDirectory)
60 mkPath(log, ExportBuildDirectory + "/" + MapUncompressedExportDirectory)
62 # Setup build directories
63 printLog(log, ">>> Setup build directories <<<")
64 mkPath(log, ExportBuildDirectory + "/" + MapBuildDirectory)
65 mkPath(log, ExportBuildDirectory + "/" + MapTagBuildDirectory)
66 if MapHlsBankFileName != None or MapPanoplyFileList != None:
67 mkPath(log, ExportBuildDirectory + "/" + MapPanoplyBuildDirectory)
68 mkPath(log, ExportBuildDirectory + "/" + MapPanoplyHlsInfoBuildDirectory)
69 mkPath(log, ExportBuildDirectory + "/" + MapPanoplyHlsBankBuildDirectory)
70 mkPath(log, ExportBuildDirectory + "/" + MapPanoplyCacheBuildDirectory)
72 # Setup client directories
73 printLog(log, ">>> Setup client directories <<<")
74 mkPath(log, InstallDirectory + "/" + MapInstallDirectory)
76 log.close()
79 # end of file