aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/shell/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shell/BUILD')
-rw-r--r--examples/shell/BUILD28
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"]),
+)