mirror of
https://github.com/pret/pokered.git
synced 2024-10-23 23:18:23 +00:00
d2823aea62
hg-commit-id: 478c951152e4
26 lines
649 B
Python
26 lines
649 B
Python
#!/usr/bin/python
|
|
#author: Bryan Bishop <kanzure@gmail.com>
|
|
#date: 2012-01-13
|
|
import os
|
|
|
|
changeset_numbers = range(266, 635)
|
|
|
|
def take_snapshot_image(changeset_number):
|
|
"turn common.asm into an image at a certain version"
|
|
|
|
print "reverting common.asm to r" + str(changeset_number)
|
|
|
|
#revert the file
|
|
os.system("hg revert ../common.asm -r" + str(changeset_number))
|
|
|
|
print "generating the image.."
|
|
|
|
#draw the image
|
|
os.system("python romviz.py")
|
|
|
|
#move the file
|
|
os.system("mv test.png versions/" + str(changeset_number) + ".png")
|
|
|
|
for changeset_number in changeset_numbers:
|
|
take_snapshot_image(changeset_number)
|
|
|