make setup.py typeout more accurate

This commit is contained in:
Paul Franklin 2016-02-29 16:41:11 -08:00
parent 8744da91c3
commit 4bbee3539b

View File

@ -138,13 +138,12 @@ def build_trans(build_cmd):
reply = input(ask) reply = input(ask)
if reply in ['n', 'N']: if reply in ['n', 'N']:
raise SystemExit(msg) raise SystemExit(msg)
log.info('Compiling %s >> %s', po_file, mo_file)
#linux specific piece: #linux specific piece:
target = 'share/locale/' + lang + '/LC_MESSAGES' target = 'share/locale/' + lang + '/LC_MESSAGES'
data_files.append((target, [mo_file_unix])) data_files.append((target, [mo_file_unix]))
log.info('Compiling %s >> %s.', po_file, target)
def build_man(build_cmd): def build_man(build_cmd):
''' '''
Compresses Gramps manual files Compresses Gramps manual files
@ -164,7 +163,7 @@ def build_man(build_cmd):
import gzip import gzip
man_file_gz = os.path.join(newdir, 'gramps.1.gz') man_file_gz = os.path.join(newdir, 'gramps.1.gz')
if os.path.exists(man_file_gz): if os.path.exists(man_file_gz):
if newer(newfile, man_file_gz): if newer(filename, man_file_gz):
os.remove(man_file_gz) os.remove(man_file_gz)
else: else:
filename = False filename = False
@ -175,6 +174,7 @@ def build_man(build_cmd):
with open(newfile, 'rb') as f_in,\ with open(newfile, 'rb') as f_in,\
gzip.open(man_file_gz, 'wb') as f_out: gzip.open(man_file_gz, 'wb') as f_out:
f_out.writelines(f_in) f_out.writelines(f_in)
log.info('Compiling %s >> %s', filename, man_file_gz)
os.remove(newfile) os.remove(newfile)
filename = False filename = False
@ -184,8 +184,6 @@ def build_man(build_cmd):
target = 'share/man/' + lang + '/man1' target = 'share/man/' + lang + '/man1'
data_files.append((target, [src])) data_files.append((target, [src]))
log.info('Compiling %s >> %s.', src, target)
def build_intl(build_cmd): def build_intl(build_cmd):
''' '''
Merge translation files into desktop and mime files Merge translation files into desktop and mime files