aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-10-11 20:56:32 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-10-11 20:56:32 +0300
commit8aa45655b767a9ebf4028c3e7a4d17a0d777c44b (patch)
tree58d2c0d58fd343caf9148b26f7456dfc9d64d462 /interpreter.py
parent97303b1783e3be567172143b6eabf7cb76191d66 (diff)
downloadmeson-8aa45655b767a9ebf4028c3e7a4d17a0d777c44b.zip
meson-8aa45655b767a9ebf4028c3e7a4d17a0d777c44b.tar.gz
meson-8aa45655b767a9ebf4028c3e7a4d17a0d777c44b.tar.bz2
Renamed data() to install_data().
Diffstat (limited to 'interpreter.py')
-rw-r--r--interpreter.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/interpreter.py b/interpreter.py
index 60903f6..8b121f2 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -694,6 +694,7 @@ class Interpreter():
'install_man' : self.func_install_man,
'man' : self.func_man,
'subdir' : self.func_subdir,
+ 'install_data' : self.func_install_data,
'data' : self.func_data,
'configure_file' : self.func_configure_file,
'include_directories' : self.func_include_directories,
@@ -1207,6 +1208,10 @@ class Interpreter():
self.subdir = prev_subdir
def func_data(self, node, args, kwargs):
+ mlog.log(mlog.bold('Warning! '), 'Function data() is deprecated, please use install_data() instead.')
+ return self.func_install_data(node, args, kwargs)
+
+ def func_install_data(self, node, args, kwargs):
if len(args ) < 1:
raise InvalidArguments('Data function must have at least one argument: the subdirectory.')
for a in args: