github.com/onflow/atree@v0.6.0/check-headers.sh (about)

     1  #!/bin/sh
     2  
     3  files=$(find . -name \*.go -type f -print0 | xargs -0 grep -L -E '(Licensed under the Apache License)|(Code generated (from|by))')
     4  if [ -n "$files" ]; then
     5    echo "Missing license header in:"
     6    echo "$files"
     7    exit 1
     8  fi