aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLászló Csomor <laszlocsomor@users.noreply.github.com>2019-03-18 13:23:15 +0100
committerLaurent Le Brun <laurentlb@gmail.com>2019-03-18 13:23:15 +0100
commitdb27394846f9beda839c10fa1e37a00a2a193235 (patch)
tree8622c9469efceab8f0e3de5d8daac5710da41444 /docs
parentf26e8ac863e5fc764189853723cd3e707fc039a9 (diff)
downloadbazel-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/BUILD7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/BUILD b/docs/BUILD
index 3bf6a3c..76486aa 100644
--- a/docs/BUILD
+++ b/docs/BUILD
@@ -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",