diff options
author | László Csomor <laszlocsomor@users.noreply.github.com> | 2019-03-18 13:23:15 +0100 |
---|---|---|
committer | Laurent Le Brun <laurentlb@gmail.com> | 2019-03-18 13:23:15 +0100 |
commit | db27394846f9beda839c10fa1e37a00a2a193235 (patch) | |
tree | 8622c9469efceab8f0e3de5d8daac5710da41444 /docs | |
parent | f26e8ac863e5fc764189853723cd3e707fc039a9 (diff) | |
download | bazel-skylib-db27394846f9beda839c10fa1e37a00a2a193235.tar.gz |
copy_file: add rule and tests (#123)
This PR adds two new rules: copy_file and
copy_xfile.
Both rules solve a common problem: to copy one
file to another location. The problem is routinely
solved using a genrule. That however requires
Bash, since genrules execute Bash commands.
Requiring Bash is a problem on Windows.
The new rules do not require Bash on Windows (only
on other platforms).
The only difference between the rules is that
copy_xfile creates an executable file while
copy_file doesn't.
See https://github.com/bazelbuild/bazel/issues/4319
Diffstat (limited to 'docs')
-rw-r--r-- | docs/BUILD | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -93,6 +93,13 @@ stardoc( ) stardoc( + name = "copy_file_docs", + out = "copy_file_doc_gen.md", + input = "//rules:copy_file.bzl", + deps = ["//rules:copy_file"], +) + +stardoc( name = "maprule_docs", out = "maprule_doc_gen.md", input = "//rules:maprule.bzl", |