Skip to content

Commit

Permalink
add missing file (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
aiuto committed Aug 5, 2019
1 parent da130c4 commit 4df77ae
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pkg/releasing/defs.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


def print_rel_notes(name, repo, version, outs=None):
tarball_name = ":%s-%s.tar.gz" % (repo, version)
native.genrule(
name = "relnotes",
srcs = [
tarball_name,
],
outs = outs or ["relnotes.txt"],
cmd = " ".join([
"$(location @rules_pkg//releasing:print_rel_notes)",
repo,
version,
"$(location %s)" % tarball_name,
">$@",
]),
tools = [
"@rules_pkg//releasing:print_rel_notes",
],
)

0 comments on commit 4df77ae

Please sign in to comment.