5 # \date 2010-05-24 13:42GMT
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 copy")
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 CopyDirectSourceDirectories
:
50 for file in CopyDirectSourceFiles
:
51 mkPath(log
, os
.path
.dirname(file))
52 for dir in CopyLeveldesignSourceDirectories
:
53 mkPath(log
, LeveldesignDirectory
+ "/" + dir)
54 for file in CopyLeveldesignSourceFiles
:
55 mkPath(log
, os
.path
.dirname(LeveldesignDirectory
+ "/" + file))
56 for dir in CopyLeveldesignWorldSourceDirectories
:
57 mkPath(log
, LeveldesignWorldDirectory
+ "/" + dir)
58 for file in CopyLeveldesignWorldSourceFiles
:
59 mkPath(log
, os
.path
.dirname(LeveldesignWorldDirectory
+ "/" + file))
60 for dir in CopyLeveldesignDfnSourceDirectories
:
61 mkPath(log
, LeveldesignDfnDirectory
+ "/" + dir)
62 for file in CopyLeveldesignDfnSourceFiles
:
63 mkPath(log
, os
.path
.dirname(LeveldesignDfnDirectory
+ "/" + file))
64 for dir in CopyDatabaseSourceDirectories
:
65 mkPath(log
, DatabaseDirectory
+ "/" + dir)
66 for file in CopyDatabaseSourceFiles
:
67 mkPath(log
, os
.path
.dirname(DatabaseDirectory
+ "/" + file))
69 # Setup client directories
70 printLog(log
, ">>> Setup client directories <<<")
71 mkPath(log
, InstallDirectory
+ "/" + CopyInstallDirectory
)