Fail. Because mkdeeds never returns (it's necessary to Ctrl-z then kill %1)
looping over the jurisdictions doesn't work. It just hangs after Deeds are
generated for first jurisdiction in the list. I had been hoping that the
following little script would work. Nathan, any ideas on how to proceed? It'd
be nice if mkdeeds actually returned:
#!/usr/bin/python
from xml.dom import minidom
import subprocess
dom = minidom.parse('./cc.license_/cc/license/license_xsl/licenses.xml')
elems = dom.getElementsByTagName('jurisdiction-info')
jurisdictions = [elem.attributes['id'].value for elem in elems]
for jurisdiction in jurisdictions[1:]:
print "Generating Deeds for " + jurisdiction
subprocess.call(['./bin/mkdeeds', '-j %s' % jurisdiction, '-o
../../../license.rdf/trunk/licenses/'])
|