gencontrol.py: Create debian/po as necessary.
svn path=/dists/trunk/linux/; revision=20523
This commit is contained in:
parent
523c8becc4
commit
d897b21426
|
@ -63,6 +63,10 @@ class Gencontrol(Base):
|
|||
})
|
||||
|
||||
# Prepare to generate template-substituted translations
|
||||
try:
|
||||
os.mkdir('debian/po')
|
||||
except OSError:
|
||||
pass
|
||||
for path in glob.glob('debian/templates/po/*.po'):
|
||||
target = 'debian/po/' + os.path.basename(path)
|
||||
with open(target, 'w') as f:
|
||||
|
|
Loading…
Reference in New Issue