Replace Unix shell commands with scripts.

pull/8542/head
Jussi Pakkanen 4 years ago
parent 3ac3e125e4
commit a0c16f94fc
  1. 6
      test cases/common/151 reserved targets/runtarget/echo.py
  2. 2
      test cases/common/151 reserved targets/runtarget/meson.build
  3. 6
      test cases/common/84 identical target name in subproject/meson.build
  4. 6
      test cases/common/84 identical target name in subproject/subprojects/foo/meson.build
  5. 4
      test cases/common/84 identical target name in subproject/subprojects/foo/true.py
  6. 4
      test cases/common/84 identical target name in subproject/true.py

@ -0,0 +1,6 @@
#!/usr/bin/env python3
import sys
if len(sys.argv) > 1:
print(sys.argv[1])

@ -1,2 +1,2 @@
configure_file(output : 'config.h', configuration: configuration_data()) configure_file(output : 'config.h', configuration: configuration_data())
run_target('runtarget', command : ['echo']) run_target('runtarget', command : [find_program('echo.py')])

@ -2,6 +2,8 @@ project('toplevel bar', 'c')
subproject('foo') subproject('foo')
true_cmd = find_program('true.py')
executable('bar', 'bar.c') executable('bar', 'bar.c')
run_target('nop', command : ['true']) run_target('nop', command : [true_cmd])
custom_target('cus', output: ['cus.c'], command : ['true']) custom_target('cus', output: ['cus.c'], command : [true_cmd])

@ -1,5 +1,7 @@
project('subfoo', 'c') project('subfoo', 'c')
true_cmd = find_program('true.py')
executable('bar', 'bar.c') executable('bar', 'bar.c')
run_target('nop', command : ['true']) run_target('nop', command : [true_cmd])
custom_target('cus', output: ['cus.c'], command : ['true']) custom_target('cus', output: ['cus.c'], command : [true_cmd])

@ -0,0 +1,4 @@
#!/usr/bin/env python3
if __name__ == '__main__':
pass

@ -0,0 +1,4 @@
#!/usr/bin/env python3
if __name__ == '__main__':
pass
Loading…
Cancel
Save