diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/migrate-chunks | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/migrate-chunks b/scripts/migrate-chunks index 8be928c0..7ab49803 100755 --- a/scripts/migrate-chunks +++ b/scripts/migrate-chunks @@ -102,10 +102,13 @@ def move_morphologies(morphs, kind, directory, path): for submorph in morph[morph_dir[kind]]: submorph['morph'] = sanitise_morphology_path(submorph['morph'], kind) print 'Moving %s into %s' % (morph.filename, directory) + loader.save_to_file(morph.filename, morph) + subprocess.call(['git', 'add', morph.filename]) + subprocess.call(['git', 'commit', '--quiet', '-m', + 'Add morphology paths to %s' %(morph['name'] + '.morph']) new_location = os.path.join(subdir, morph.filename) subprocess.call(['git', 'mv', morph.filename, new_location]) morph.filename = new_location - loader.save_to_file(morph.filename, morph) subprocess.call(['git', 'add', morph.filename]) subprocess.call(['git', 'commit', '--quiet', '-m', 'Move %s into %s' %(morph['name'] + '.morph', directory)]) |