From 684d9e28124fd2aabd84492473f8128f11e9cca7 Mon Sep 17 00:00:00 2001 From: Matthieu Dorier Date: Wed, 22 Nov 2023 12:11:36 +0000 Subject: [PATCH] updated initial-setup.py --- .github/initial-setup.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/initial-setup.py b/.github/initial-setup.py index 254f79b..64eece5 100644 --- a/.github/initial-setup.py +++ b/.github/initial-setup.py @@ -54,8 +54,6 @@ def rename_files_and_directories(root, extensions, if new_name != subdirname: print("==> Renaming "+os.path.join(dirname, subdirname)+" into "+os.path.join(dirname, new_name)) os.system(f'git mv {os.path.join(dirname, subdirname)} {os.path.join(dirname, new_name)}') - #shutil.move(os.path.join(dirname, subdirname), - # os.path.join(dirname, new_name)) dirnames.remove(subdirname) dirnames.append(new_name) # rename files @@ -70,8 +68,6 @@ def rename_files_and_directories(root, extensions, if new_name != filename: print("==> Renaming "+os.path.join(dirname, filename)+" into "+os.path.join(dirname, new_name)) os.system(f'git mv {os.path.join(dirname, filename)} {os.path.join(dirname, new_name)}') - #os.rename(os.path.join(dirname, filename), - # os.path.join(dirname, new_name)) break # don't try the next extension for this file @@ -96,15 +92,13 @@ def rename_files_and_directories(root, extensions, } files_to_edit = list_files_to_edit('.', extensions=['.cpp', '.h', '.hpp', '.txt', '.in', '.json'], - exclude_directories=['.git', '.github', 'build', '.spack-env', 'munit'], - exclude_files=['uthash.h']) + exclude_directories=['.git', '.github', 'build', '.spack-env']) for f in files_to_edit: replace_in_file(f, mapping) rename_files_and_directories('.', extensions=['.cpp', '.h', '.hpp', '.txt', '.in'], mapping=mapping, - exclude_directories=['.git', '.github', 'build', '.spack-env', 'munit'], - exclude_files=['uthash.h']) + exclude_directories=['.git', '.github', 'build', '.spack-env']) os.system('git rm .github/initial-setup.py') os.system('git rm initial-setup.json') os.system('git rm .github/workflows/setup.yml')