Call cp with -p instead of --preserve=mode
authorNikolaus Rath <Nikolaus@rath.org>
Fri, 11 Aug 2017 08:46:07 +0000 (10:46 +0200)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 11 Aug 2017 08:46:07 +0000 (10:46 +0200)
Preserving other attributes doesn't hurt, and --preserve
is not supported under FreeBSD.

test/meson.build

index e50251c61a1ebfdc03806c6f5e58faebee1ff1f3..69af767c4e3592ad3a98c25c96cd8fe6284acafd 100644 (file)
@@ -15,7 +15,7 @@ test_scripts = [ 'conftest.py', 'pytest.ini', 'test_examples.py',
                  'util.py', 'test_ctests.py' ]
 td += custom_target('test_scripts', input: test_scripts,
                       output: test_scripts, build_by_default: true,
-                      command: ['cp', '-fP', '--preserve=mode',
+                      command: ['cp', '-fPp',
                                 '@INPUT@', meson.current_build_dir() ])
 
 # Provide something helpful when running 'ninja test'