2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-28 08:43:26 +00:00

Use shell function for copying directory contents to be multi-platform (#171)

This commit is contained in:
irengrig 2018-12-05 15:13:03 +01:00 committed by GitHub
parent f31530ab3d
commit 8e2cc0f83c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ def copy_directory(actions, orig_path, copy_path):
file = dir_copy,
script = "\n".join([
"mkdir -p $EXT_BUILD_ROOT/" + dir_copy.path,
"cp -L -r --no-target-directory {} $EXT_BUILD_ROOT/{}".format(
"copy_dir_contents_to_dir {} $EXT_BUILD_ROOT/{}".format(
orig_path,
dir_copy.path,
),