xref: /aosp_15_r20/external/googleapis/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1genrule(
2  name = "build_gen",
3  outs = ["build_gen.sh"],
4  executable = True,
5  srcs = glob(["run_build_gen.sh"]),
6  cmd = """
7    if test -z \"$(SRCS)\"; then
8      cat <<EOD > $@
9#!/bin/sh
10echo build_gen needs to be run internally, not on GitHub repository.
11echo Please file an issue on GitHub if you have any questions:
12echo https://github.com/googleapis/rules_gapic/issues/new
13EOD
14    else
15      cp $(SRCS) $@
16    fi
17  """,
18)
19