summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2020-02-27 23:59:00 +0100
committerKarolin Seeger <kseeger@samba.org>2021-03-03 10:13:11 +0000
commita4ab7d474f2a5b80cf6643d099e972f7ab190215 (patch)
treefc4b3ba6fe6375061b6ddfc2c96d9b3450534fba
parent833739c1e8fac68582009450ac34a27695a439f0 (diff)
downloadsamba-a4ab7d474f2a5b80cf6643d099e972f7ab190215.tar.gz
script/autobuild.py: use more portable 'cp -R -a -l'
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> (cherry picked from commit 0312a10e09d8dc1295a4a80493761e91031e88e7)
-rwxr-xr-xscript/autobuild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/autobuild.py b/script/autobuild.py
index 890059fe342..f71e0266503 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -848,7 +848,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()