You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/demos/intltool/data/wscript

33 lines
721 B
Python

#! /usr/bin/env python
from waflib import Utils
def build(bld):
if bld.cmd == 'install':
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:
pass
bld(
features = "intltool_in",
podir = "../po",
style = "desktop",
source = 'kupfer.desktop.in',
target = 'kupfer.desktop',
install_path = "${DATADIR}/applications",
)
bld(
features = "intltool_in",
podir = "../po",
style = "xml",
source = 'kupfer-mimetypes.xml.in',
target = 'kupfer-mimetypes.xml',
install_path = "${DATADIR}/mime/packages/",
)