Another step towards working wmlmove.
This commit is contained in:
parent
a77ed3f21b
commit
b82c2f420f
2 changed files with 10 additions and 1 deletions
|
@ -701,7 +701,9 @@ if __name__ == '__main__':
|
|||
if c == '}':
|
||||
inmacro = False
|
||||
newterrains += c
|
||||
transformed = pre + newterrains[:-1] + post
|
||||
if newterrains.endswith(","):
|
||||
newterrains = newterrains[:-1]
|
||||
transformed = pre + newterrains + post
|
||||
if newstyle:
|
||||
if len(value) == 2:
|
||||
# 1.3.1 to 1.3.2 conversion
|
||||
|
|
|
@ -113,6 +113,9 @@ if __name__ == "__main__":
|
|||
defloc.dump_references()
|
||||
|
||||
# Generate the actual move commands
|
||||
print "# Generated script from", " ".join(sys.argv[1:])
|
||||
print ""
|
||||
print "# Image moves"
|
||||
for (name, defloc) in srcrefs.fileref.items():
|
||||
if not wmltools.namespace_member(name, dst):
|
||||
target = wmltools.resolve_unit_image(dst, iclass, os.path.basename(name))
|
||||
|
@ -120,5 +123,9 @@ if __name__ == "__main__":
|
|||
print wmltools.vcunmove(name, target)
|
||||
else:
|
||||
print wmltools.vcmove(name, target)
|
||||
print ""
|
||||
print "# .cfg moves"
|
||||
|
||||
|
||||
|
||||
# wmlmove ends here
|
||||
|
|
Loading…
Add table
Reference in a new issue