diff options
author | Dave MacLachlan <dmaclach@google.com> | 2016-02-03 23:31:39 +0000 |
---|---|---|
committer | David Chen <dzc@google.com> | 2016-02-04 18:10:48 +0000 |
commit | 4800626eee5245a062e910b648adb2f291e212c5 (patch) | |
tree | 3788c41baf1878357c652ed5df013b0a2d3abb21 /examples/shell/BUILD | |
parent | 2f4d1c2583b3fc1ce63d7c5eb678f0717c21db1a (diff) |
Add shell example to bazel. Includes sh_binary, sh_library and sh_test.
--
MOS_MIGRATED_REVID=113789897
Diffstat (limited to 'examples/shell/BUILD')
-rw-r--r-- | examples/shell/BUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/shell/BUILD b/examples/shell/BUILD new file mode 100644 index 0000000000..9aba320bc2 --- /dev/null +++ b/examples/shell/BUILD @@ -0,0 +1,28 @@ +package(default_visibility = ["//visibility:public"]) + +sh_binary( + name = "bin", + srcs = ["bin.sh"], + deps = [":lib"], +) + +sh_library( + name = "lib", + data = [ + "data/file.txt", + "lib.sh", + ], +) + +sh_test( + name = "test", + size = "small", + srcs = ["test.sh"], + data = ["data/test_file.txt"], + deps = [":lib"], +) + +filegroup( + name = "srcs", + srcs = ["BUILD"] + glob(["**/*.sh"]) + glob(["**/*.txt"]), +) |