github.com/golang/dep@v0.5.4/hack/validate-licence.bash (about)

     1  #!/usr/bin/env bash
     2  # Copyright 2017 The Go Authors. All rights reserved.
     3  # Use of this source code is governed by a BSD-style
     4  # license that can be found in the LICENSE file.
     5  #
     6  # This script will build licenseok and run it on all
     7  # source files to check licence
     8  set -e
     9  
    10  go build -o licenseok ./hack/licenseok/main.go
    11  find . -path ./vendor -prune -o -path ./cmd/dep/testdata -prune\
    12      -o -regex ".+\.pb\.go$" -prune -o -type f -regex ".*\.\(go\|proto\)$"\
    13      -printf '%P\n' | xargs ./licenseok