Skip to content

Commit

Permalink
Update licensing tool
Browse files Browse the repository at this point in the history
  • Loading branch information
adibrastegarnia committed Apr 17, 2020
1 parent 81024fd commit f9c8063
Show file tree
Hide file tree
Showing 4 changed files with 14 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,5 +21,4 @@ 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
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)
1 change: 1 addition & 0 deletions build/tools
Submodule tools added at c8fbce

0 comments on commit f9c8063

Please sign in to comment.