Renamed man() to install_man().

pull/15/head
Jussi Pakkanen 10 years ago
parent 65974b4dad
commit 97303b1783
  1. 5
      interpreter.py
  2. 4
      test cases/common/10 man install/meson.build
  3. 2
      test cases/common/52 custom install dirs/meson.build

@ -691,6 +691,7 @@ class Interpreter():
'test' : self.func_test,
'install_headers' : self.func_install_headers,
'headers' : self.func_headers,
'install_man' : self.func_install_man,
'man' : self.func_man,
'subdir' : self.func_subdir,
'data' : self.func_data,
@ -1160,6 +1161,10 @@ class Interpreter():
return h
def func_man(self, node, args, kwargs):
mlog.log(mlog.bold('Warning! '), 'Function man() is deprecated, please use install_man() instead.')
return self.func_install_man(node, args, kwargs)
def func_install_man(self, node, args, kwargs):
for a in args:
if not isinstance(a, str):
raise InvalidArguments('Argument %s is not a string.' % str(a))

@ -1,3 +1,3 @@
project('man install', 'c')
m1 = man('foo.1')
m2 = man('bar.2')
m1 = install_man('foo.1')
m2 = install_man('bar.2')

@ -2,5 +2,5 @@ project('custom install dirs', 'c')
executable('prog', 'prog.c', install : true, install_dir : 'dib/dab/dub')
install_headers('sample.h', install_dir : 'some/dir')
man('prog.1', install_dir : 'woman')
install_man('prog.1', install_dir : 'woman')
data('foobar', 'datafile.cat', install_dir : 'meow')

Loading…
Cancel
Save