import assemble
import gitlog

needUpdate = set() # can't update until we have the oldest log

for modified, which, location, ext in gitlog.log(os.environ.get("when","HEAD~1..HEAD")):
    if not os.path.exists(location): continue
    needUpdate.add(location)
    
for location in needUpdate:
    os.chdir(location)
    assemble.run()
    os.chdir("..")
