waf/demos/intltool/data/wscript

36 lines
787 B
Plaintext
Raw Permalink Normal View History

2011-09-10 11:13:51 +02:00
#! /usr/bin/env python
from waflib import Utils
def build(bld):
2016-07-25 23:33:54 +02:00
def post_update(bld):
2011-09-10 11:13:51 +02:00
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)])
2016-07-25 23:33:54 +02:00
except Exception:
2011-09-10 11:13:51 +02:00
pass
2016-07-25 23:33:54 +02:00
if bld.cmd == 'install':
bld.add_post_fun(post_update)
2011-09-10 11:13:51 +02:00
bld(
features = "intltool_in",
podir = "../po",
style = "desktop",
2011-09-10 11:13:51 +02:00
source = 'kupfer.desktop.in',
target = 'kupfer.desktop',
install_path = "${DATADIR}/applications",
)
bld(
features = "intltool_in",
podir = "../po",
style = "xml",
2011-09-10 11:13:51 +02:00
source = 'kupfer-mimetypes.xml.in',
target = 'kupfer-mimetypes.xml',
install_path = "${DATADIR}/mime/packages/",
)