Update the intltool docs

This commit is contained in:
Thomas Nagy 2016-07-25 23:33:54 +02:00
parent fe2f2b4fe6
commit c26506afc5
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 5 additions and 2 deletions

View File

@ -4,13 +4,16 @@ from waflib import Utils
def build(bld):
if bld.cmd == 'install':
def post_update(bld):
try:
bld.exec_command(["update-mime-database", Utils.subst_vars("${DATADIR}/mime", bld.env)])
bld.exec_command(["update-desktop-database", Utils.subst_vars("${DATADIR}/applications", bld.env)])
except:
except Exception:
pass
if bld.cmd == 'install':
bld.add_post_fun(post_update)
bld(
features = "intltool_in",
podir = "../po",