summaryrefslogtreecommitdiff
path: root/scripts/migrate-chunks
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/migrate-chunks')
-rwxr-xr-xscripts/migrate-chunks7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/migrate-chunks b/scripts/migrate-chunks
index 90f5b7c..f93619d 100755
--- a/scripts/migrate-chunks
+++ b/scripts/migrate-chunks
@@ -40,10 +40,9 @@ def move_morphs(morphs, kind):
for m in morph['systems']:
m['morph'] = str('systems/' + m['morph'] + '.morph')
#loader.save_to_file(morph.filename, morph)
- new_location = os.path.join(subdir, morph.filename)
loader.save_to_file(morph.filename, morph)
+ new_location = os.path.join(subdir, morph.filename)
#subprocess.call(['git', 'mv', morph.filename, new_location])
- sys.exit(0)
#morph.filename = new_location
#subprocess.call(['git', 'commit', '--quiet', '-m',
# 'Move %s into subdirectory' %kind])
@@ -57,11 +56,10 @@ def move_morphs(morphs, kind):
stratum['morph'] = str('strata/' + stratum['morph'] + '.morph')
loader.save_to_file(morph.filename,morph)
new_location = os.path.join(subdir, morph.filename)
- subprocess.call(['git', 'mv', morph.filename, new_location])
+ #subprocess.call(['git', 'mv', morph.filename, new_location])
#morph.filename = new_location
#subprocess.call(['git', 'commit', '--quiet', '-m',
# 'Move %s into subdirectory' %kind])
- sys.exit(0)
#for morph in morphs:
# print '%s' %morph
@@ -77,6 +75,7 @@ def move_morphs(morphs, kind):
# 'Move %s into subdirectory' % kind]m
for key in morphologies.iterkeys():
+ print "Moving %s....\n" %key
move_morphs(morphologies[key], key)
#move_morphs(chunks, 'chunks')