Skip to content

Commit

Permalink
repo: Make it work externally
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax committed Jul 31, 2024
1 parent b90abf4 commit d903266
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ def envoy_example(name, shared = ":shared_files", common_fun = ":verify-common.s
name = "%s_dir" % name,
outs = ["%s_dir.tar" % name],
cmd = """
tar chf $@ -C . shared verify-common.sh %s
""" % name,
SHARED_PATHS=$(locations %s)
SHARED=$$(echo $$SHARED_PATHS | cut -d/ -f1)
tar chf $@ -C . $$SHARED $(location %s) %s
""" % (shared, common_fun, name),
tools = [
common_fun,
shared,
Expand Down

0 comments on commit d903266

Please sign in to comment.