From 4800626eee5245a062e910b648adb2f291e212c5 Mon Sep 17 00:00:00 2001 From: Dave MacLachlan Date: Wed, 3 Feb 2016 23:31:39 +0000 Subject: Add shell example to bazel. Includes sh_binary, sh_library and sh_test. -- MOS_MIGRATED_REVID=113789897 --- examples/shell/BUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 examples/shell/BUILD (limited to 'examples/shell/BUILD') 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"]), +) -- cgit v1.2.3