mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-25 01:17:10 +01:00
Fix target folder issue with the new engine setup script.
This commit is contained in:
parent
8f18cd8b77
commit
3113c03020
13
SConstruct
13
SConstruct
@ -27,7 +27,7 @@ module_repositories = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
addon_repositories = [
|
addon_repositories = [
|
||||||
['https://github.com/Relintai/entity-spell-system-addons.git', 'entity-spell-system-addons', '/addons' ],
|
['https://github.com/Relintai/entity-spell-system-addons.git', 'entity-spell-system-addons', 'addons' ],
|
||||||
]
|
]
|
||||||
|
|
||||||
third_party_addon_repositories = [
|
third_party_addon_repositories = [
|
||||||
@ -95,6 +95,9 @@ def setup_repository(data, clone_path):
|
|||||||
os.chdir(cwd)
|
os.chdir(cwd)
|
||||||
|
|
||||||
def copy_repository(data, target_folder, clone_path):
|
def copy_repository(data, target_folder, clone_path):
|
||||||
|
copytree(os.path.abspath(clone_path + data[1] + '/' + data[2]), os.path.abspath(target_folder + data[1]))
|
||||||
|
|
||||||
|
def copy_addon_repository(data, target_folder, clone_path):
|
||||||
copytree(os.path.abspath(clone_path + data[1] + '/' + data[2]), os.path.abspath(target_folder))
|
copytree(os.path.abspath(clone_path + data[1] + '/' + data[2]), os.path.abspath(target_folder))
|
||||||
|
|
||||||
def copytree(src, dst):
|
def copytree(src, dst):
|
||||||
@ -121,12 +124,12 @@ def update_modules():
|
|||||||
def update_addons():
|
def update_addons():
|
||||||
for rep in addon_repositories:
|
for rep in addon_repositories:
|
||||||
update_repository(rep, module_clone_path)
|
update_repository(rep, module_clone_path)
|
||||||
copy_repository(rep, './game/addons/', '.' + module_clone_path)
|
copy_addon_repository(rep, './game/addons/', '.' + module_clone_path)
|
||||||
|
|
||||||
def update_addons_third_party_addons():
|
def update_addons_third_party_addons():
|
||||||
for rep in third_party_addon_repositories:
|
for rep in third_party_addon_repositories:
|
||||||
update_repository(rep, module_clone_path)
|
update_repository(rep, module_clone_path)
|
||||||
copy_repository(rep, './game/addons/', '.' + module_clone_path)
|
copy_addon_repository(rep, './game/addons/', '.' + module_clone_path)
|
||||||
|
|
||||||
def update_all():
|
def update_all():
|
||||||
update_engine()
|
update_engine()
|
||||||
@ -148,12 +151,12 @@ def setup_modules():
|
|||||||
def setup_addons():
|
def setup_addons():
|
||||||
for rep in addon_repositories:
|
for rep in addon_repositories:
|
||||||
setup_repository(rep, module_clone_path)
|
setup_repository(rep, module_clone_path)
|
||||||
copy_repository(rep, './game/addons/', '.' + module_clone_path)
|
copy_addon_repository(rep, './game/addons/', '.' + module_clone_path)
|
||||||
|
|
||||||
def setup_addons_third_party_addons():
|
def setup_addons_third_party_addons():
|
||||||
for rep in third_party_addon_repositories:
|
for rep in third_party_addon_repositories:
|
||||||
setup_repository(rep, module_clone_path)
|
setup_repository(rep, module_clone_path)
|
||||||
copy_repository(rep, './game/addons/', '.' + module_clone_path)
|
copy_addon_repository(rep, './game/addons/', '.' + module_clone_path)
|
||||||
|
|
||||||
def setup_all():
|
def setup_all():
|
||||||
load_target_commits_array()
|
load_target_commits_array()
|
||||||
|
Loading…
Reference in New Issue
Block a user