5 # \date 2009-03-10-22-43-GMT
6 # \author Jan Boon (Kaetemi)
7 # Python port of game data build pipeline.
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"):
32 log
= open("log.log", "w")
34 from buildsite
import *
37 from directories
import *
40 printLog(log
, "-------")
41 printLog(log
, "--- Setup rbank")
42 printLog(log
, "-------")
43 printLog(log
, time
.strftime("%Y-%m-%d %H:%MGMT", time
.gmtime(time
.time())))
46 # Setup source directories
47 printLog(log
, ">>> Setup source directories <<<")
48 for dir in RBankCmbSourceDirectories
:
49 mkPath(log
, DatabaseDirectory
+ "/" + dir)
50 mkPath(log
, LeveldesignWorldDirectory
)
51 mkPath(log
, WorldEditorFilesDirectory
)
53 # Setup export directories
54 printLog(log
, ">>> Setup export directories <<<")
55 mkPath(log
, ExportBuildDirectory
+ "/" + RBankCmbExportDirectory
)
56 mkPath(log
, ExportBuildDirectory
+ "/" + RBankCmbTagExportDirectory
)
57 mkPath(log
, ExportBuildDirectory
+ "/" + SmallbankExportDirectory
)
59 # Setup build directories
60 printLog(log
, ">>> Setup build directories <<<")
61 mkPath(log
, ExportBuildDirectory
+ "/" + ZoneWeldBuildDirectory
)
62 for dir in IgLookupDirectories
:
63 mkPath(log
, ExportBuildDirectory
+ "/" + dir)
64 for dir in ShapeLookupDirectories
:
65 mkPath(log
, ExportBuildDirectory
+ "/" + dir)
66 mkPath(log
, ExportBuildDirectory
+ "/" + RbankBboxBuildDirectory
)
67 mkPath(log
, ExportBuildDirectory
+ "/" + IgLandBuildDirectory
)
68 mkPath(log
, ExportBuildDirectory
+ "/" + IgOtherBuildDirectory
)
69 mkPath(log
, ExportBuildDirectory
+ "/" + RbankTessellationBuildDirectory
)
70 mkPath(log
, ExportBuildDirectory
+ "/" + RbankSmoothBuildDirectory
)
71 mkPath(log
, ExportBuildDirectory
+ "/" + RbankRawBuildDirectory
)
72 mkPath(log
, ExportBuildDirectory
+ "/" + RbankPreprocBuildDirectory
)
73 mkPath(log
, ExportBuildDirectory
+ "/" + RbankRetrieversBuildDirectory
)
74 mkPath(log
, ExportBuildDirectory
+ "/" + RbankOutputBuildDirectory
)
76 # Setup client directories
77 printLog(log
, ">>> Setup client directories <<<")
78 mkPath(log
, InstallDirectory
+ "/" + PacsInstallDirectory
)