Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Sep 8, 2022
1 parent 55f1597 commit 54d7aad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import (

devtools "github.com/elastic/elastic-agent/dev-tools/mage"

devtoolslibs "github.com/elastic/elastic-agent-libs/dev-tools/mage"

// mage:import
"github.com/elastic/elastic-agent/dev-tools/mage/target/common"

Expand Down Expand Up @@ -973,3 +975,12 @@ func printCMD(cmd []string) {

fmt.Println(buff.String())
}

// Notice generates a NOTICE.txt file for the module.
func NoticeLib() error {
return devtoolslibs.GenerateNotice(
filepath.Join("dev-tools", "notice", "overrides.json"),
filepath.Join("dev-tools", "notice", "rules.json"),
filepath.Join("dev-tools", "notice", "NOTICE.txt.tmpl"),
)
}

0 comments on commit 54d7aad

Please sign in to comment.