1
From: David Paleino <dapal@debian.org>
2
Subject: fix release scripts, also include .po files in the tarball
7
1 file changed, 5 insertions(+), 3 deletions(-)
11
@@ -436,7 +436,10 @@ class get_translations(Command):
13
if os.path.exists('translations'):
14
shutil.rmtree('translations/')
15
+ if os.path.exists('po'):
16
+ shutil.rmtree('po/')
17
os.makedirs('translations')
19
filename, headers = urllib.urlretrieve('http://wicd.sourceforge.net/translator/idlist/')
20
id_file = open(filename, 'r')
21
lines = id_file.readlines()
22
@@ -452,11 +455,10 @@ class get_translations(Command):
24
print >> sys.stderr, 'error downloading language %s' % id
26
- shutil.move(pofile, lang_identifier+'.po')
27
+ shutil.move(pofile, 'po/'+lang_identifier+'.po')
28
os.makedirs('translations/'+lang_identifier+'/LC_MESSAGES')
29
os.system('msgfmt --output-file=translations/' + lang_identifier +
30
- '/LC_MESSAGES/wicd.mo ' + lang_identifier + '.po')
31
- os.remove(lang_identifier+'.po')
32
+ '/LC_MESSAGES/wicd.mo po/' + lang_identifier + '.po')
35
class uninstall(Command):