package(default_visibility = ["//scripts/release:__pkg__"]) filegroup( name = "git", srcs = glob([".git/**"]), ) filegroup( name = "dummy", visibility = ["//visibility:public"], ) filegroup( name = "workspace-file", srcs = [":WORKSPACE"], visibility = [ "//src/test/shell/bazel:__pkg__", "//tools/cpp/test:__pkg__", ], ) filegroup( name = "srcs", srcs = glob( ["*"], exclude = [ "bazel-*", # convenience symlinks "out", # IntelliJ with setup-intellij.sh "output", # output of compile.sh ".*", # mainly .git* files ], ) + [ "//examples:srcs", "//scripts:srcs", "//site:srcs", "//src:srcs", "//tools:srcs", "//third_party:srcs", ], visibility = ["//visibility:private"], ) load("//tools/build_defs/pkg:pkg.bzl", "pkg_tar") pkg_tar( name = "bazel-srcs", files = [":srcs"], strip_prefix = ".", # Public but bazel-only visibility. visibility = ["//:__subpackages__"], )