Skip to content

Commit f9c8063

Browse files
Update licensing tool
1 parent 81024fd commit f9c8063

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*.dll
55
*.so
66
*.dylib
7-
7+
build/tools
88
# Test binary, build with `go test -c`
99
*.test
1010

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ linters: # @HELP examines Go source code and reports coding problems
2121
golangci-lint run
2222

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

build/bin/license-check

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
if [ ! -d "build/tools" ]; then
6+
git clone https://github.com/onosproject/build-tools.git build/tools
7+
fi
8+
9+
git -C build/tools checkout v0.6.1
10+
11+
./build/tools/licensing/boilerplate.py -v --rootdir=$(pwd)

build/tools

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit c8fbce08644883d801b90346f8a53ebd60e6f988

0 commit comments

Comments
 (0)