2
0
Fork 0
mirror of https://github.com/bazelbuild/bazel-skylib synced 2024-11-30 10:41:18 +00:00
bazel-skylib/rules
László Csomor 2d1669ed88
write_file: add rule and tests (#122)
This PR adds two new rules: write_file and
write_xfile.

Both rules solve a common problem: to write a text
file with user-defined contents.

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 any shell.

The only difference between the rules is that
write_xfile creates an executable file while
write_file doesn't.

See https://github.com/bazelbuild/bazel/issues/4319
2019-03-19 07:52:56 +01:00
..
analysis_test.bzl fix a number of warnings found by Starlark analyzer (#114) 2019-02-22 17:44:48 -05:00
BUILD write_file: add rule and tests (#122) 2019-03-19 07:52:56 +01:00
build_test.bzl add documentation pages for rules/ and lib/ (#119) 2019-02-28 17:43:57 -05:00
copy_file.bzl copy_file: add rule and tests (#123) 2019-03-18 13:23:15 +01:00
copy_file_private.bzl copy_file: add rule and tests (#123) 2019-03-18 13:23:15 +01:00
empty_test.sh Add a build_test rule. (#97) 2019-01-25 14:34:15 -05:00
maprule.bzl maprule: an improved version of genrule() (#86) 2019-01-08 09:04:53 +01:00
maprule_private.bzl maprule: use ctx.resolve_tools (#117) 2019-03-04 11:04:01 +01:00
maprule_testing.bzl maprule: an improved version of genrule() (#86) 2019-01-08 09:04:53 +01:00
maprule_util.bzl maprule: use ctx.resolve_tools (#117) 2019-03-04 11:04:01 +01:00
write_file.bzl write_file: add rule and tests (#122) 2019-03-19 07:52:56 +01:00
write_file_private.bzl write_file: add rule and tests (#122) 2019-03-19 07:52:56 +01:00