mirror of
https://github.com/bazelbuild/bazel-skylib
synced 2024-11-27 05:43:25 +00:00
99ffbbf8a4
And take the opportunity to reformat docs using a more modern Stardoc release
2.2 KiB
Executable file
2.2 KiB
Executable file
A rule that copies a file to another place.
native.genrule() is sometimes used to copy files (often wishing to rename them). The 'copy_file' rule does this with a simpler interface than genrule.
The rule uses a Bash command on Linux/macOS/non-Windows, and a cmd.exe command on Windows (no Bash is required).
copy_file
copy_file(name, src, out, is_executable, allow_symlink, kwargs)
Copies a file to another location.
native.genrule()
is sometimes used to copy files (often wishing to rename them). The 'copy_file' rule does this with a simpler interface than genrule.
This rule uses a Bash command on Linux/macOS/non-Windows, and a cmd.exe command on Windows (no Bash is required).
PARAMETERS