]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
script/autobuild.py: use more portable 'cp -R -a -l'
authorStefan Metzmacher <metze@samba.org>
Thu, 27 Feb 2020 22:59:00 +0000 (23:59 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 2 Apr 2020 06:01:39 +0000 (06:01 +0000)
On platforms like FreeBSD 12 cp doesn't accept the long options,
using the one letter options works there and keeps working on Linux
as well.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
script/autobuild.py

index f90c8bd9fd322f06ee26c8bf87d2183e7c7e9b47..99b3843b822a43b7f00485f0572d6aba55469bd3 100755 (executable)
@@ -836,7 +836,7 @@ class builder(object):
         run_cmd("rm -rf %s" % self.test_source_dir)
         run_cmd("rm -rf %s" % self.prefix)
         if cp:
-            run_cmd("cp --recursive --link --archive %s %s" % (test_master, self.test_source_dir), dir=test_master, show=True)
+            run_cmd("cp -R -a -l %s %s" % (test_master, self.test_source_dir), dir=test_master, show=True)
         else:
             run_cmd("git clone --recursive --shared %s %s" % (test_master, self.test_source_dir), dir=test_master, show=True)
         self.start_next()