go.uber.org/yarpc@v1.72.1/etc/bin/update-licenses.sh (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  DIR="$(cd "$(dirname "${0}")/../.." && pwd)"
     6  cd "${DIR}"
     7  
     8  export GOBIN=$DIR/etc/bin
     9  go install go.uber.org/tools/update-license
    10  
    11  # We need to ignore internal/tests for licenses so that the golden test for
    12  # thriftrw-plugin-yarpc can verify the contents of the generated code without
    13  # running updateLicenses on it.
    14  $GOBIN/update-license $(find . -name '*.go' \
    15  	| grep -v '^\./vendor' \
    16  	| grep -v '/thriftrw-plugin-yarpc/internal/tests/')