mirror of
https://github.com/googleapis/googleapis.git
synced 2026-08-13 12:33:00 +02:00
21 lines
484 B
Text
21 lines
484 B
Text
genrule(
|
|
name = "build_gen",
|
|
srcs = glob(
|
|
["run_build_gen.sh"],
|
|
allow_empty = True,
|
|
),
|
|
outs = ["build_gen.sh"],
|
|
cmd = """
|
|
if test -z \"$(SRCS)\"; then
|
|
cat <<EOD > $@
|
|
#!/bin/sh
|
|
echo build_gen needs to be run internally, not on GitHub repository.
|
|
echo Please file an issue on GitHub if you have any questions:
|
|
echo https://github.com/googleapis/rules_gapic/issues/new
|
|
EOD
|
|
else
|
|
cp $(SRCS) $@
|
|
fi
|
|
""",
|
|
executable = True,
|
|
)
|