mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-11 09:49:05 +00:00
Replace shard install script
This commit is contained in:
parent
207de012ba
commit
8aa4ba1763
1 changed files with 11 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# \file 4_data_shard.py
|
# \file 4_shard_install.py
|
||||||
# \brief Install to data shard
|
# \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.
|
||||||
|
@ -40,7 +40,7 @@ from projects import *
|
||||||
# Log error
|
# Log error
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
printLog(log, "-------")
|
printLog(log, "-------")
|
||||||
printLog(log, "--- Install to data shard")
|
printLog(log, "--- Install to shard")
|
||||||
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, "")
|
||||||
|
@ -48,17 +48,17 @@ printLog(log, "")
|
||||||
for dir in InstallShardDataDirectories:
|
for dir in InstallShardDataDirectories:
|
||||||
printLog(log, "SHARD DIRECTORY " + dir)
|
printLog(log, "SHARD DIRECTORY " + dir)
|
||||||
mkPath(log, InstallDirectory + "/" + dir)
|
mkPath(log, InstallDirectory + "/" + dir)
|
||||||
mkPath(log, DataShardDirectory + "/" + dir)
|
mkPath(log, ShardInstallDirectory + "/" + dir)
|
||||||
copyFilesNoTreeIfNeeded(log, InstallDirectory + "/" + dir, DataShardDirectory + "/" + dir)
|
copyFilesNoTreeIfNeeded(log, InstallDirectory + "/" + dir, ShardInstallDirectory + "/" + dir)
|
||||||
for dir in InstallShardDataCollisionsDirectories:
|
for dir in InstallShardDataCollisionsDirectories:
|
||||||
printLog(log, "SHARD COLLISIONS " + dir)
|
printLog(log, "SHARD COLLISIONS " + dir)
|
||||||
mkPath(log, InstallDirectory + "/" + dir)
|
mkPath(log, InstallDirectory + "/" + dir)
|
||||||
mkPath(log, DataShardDirectory + "/collisions/" + dir)
|
mkPath(log, ShardInstallDirectory + "/" + InstallShardDataCollisionsDirectory + "/" + dir)
|
||||||
copyFilesNoTreeIfNeeded(log, InstallDirectory + "/" + dir, DataShardDirectory + "/collisions/" + dir)
|
copyFilesNoTreeIfNeeded(log, InstallDirectory + "/" + dir, ShardInstallDirectory + "/" + InstallShardDataCollisionsDirectory + "/" + dir)
|
||||||
printLog(log, "")
|
printLog(log, "")
|
||||||
|
|
||||||
log.close()
|
log.close()
|
||||||
if os.path.isfile("4_data_shard.log"):
|
if os.path.isfile("4_shard_install.log"):
|
||||||
os.remove("4_data_shard.log")
|
os.remove("4_shard_install.log")
|
||||||
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_data_shard.log")
|
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_shard_install.log")
|
||||||
shutil.move("log.log", "4_data_shard.log")
|
shutil.move("log.log", "4_shard_install.log")
|
Loading…
Reference in a new issue