This website requires JavaScript.
Explore
Help
Sign In
bazel
/
bazel-skylib
mirror of
https://github.com/bazelbuild/bazel-skylib
Watch
2
Star
0
Fork
You've already forked bazel-skylib
0
Code
Issues
Releases
Activity
27d429d8d0
bazel-skylib
/
tests
/
copy_file
/
a.txt
3 lines
29 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Use more portable `#!/usr/bin/env bash` shebang instead of hardcoded /bin/bash. (#329)
2021-10-25 13:12:41 +00:00
#!/usr/bin/env bash
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
2019-03-18 12:23:15 +00:00
echo aaa