Skip to content

Commit

Permalink
Update license tool (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adib Rastegarnia committed Apr 17, 2020
1 parent 3b60209 commit 6872216
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*.dll
*.so
*.dylib

build/tools
# Test binary, build with `go test -c`
*.test

Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ linters: # @HELP examines Go source code and reports coding problems
golangci-lint run

license_check: # @HELP examine and ensure license headers exist
@if [ ! -d "../build-tools" ]; then cd .. && git clone https://github.com/onosproject/build-tools.git; fi
./../build-tools/licensing/boilerplate.py -v --rootdir=${CURDIR}
./build/bin/license-check

protos:
docker run -it -v `pwd`:/go/src/github.com/atomix/go-framework \
Expand Down
11 changes: 11 additions & 0 deletions build/bin/license-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e

if [ ! -d "build/tools" ]; then
git clone https://github.com/onosproject/build-tools.git build/tools
fi

git -C build/tools checkout v0.6.1

./build/tools/licensing/boilerplate.py -v --rootdir=$(pwd)

0 comments on commit 6872216

Please sign in to comment.