github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/scripts/copyright.bash (about) 1 #!/bin/bash 2 3 # Copyright 2013 Canonical Ltd. 4 # Licensed under the AGPLv3, see LICENCE file for details. 5 exitstatus=0 6 result=$(find . -name '*.go' | grep -v -E "(./vendor|./acceptancetests|./provider/azure/internal|./cloudconfig)" | sort | xargs grep -L -E '// (Copyright|Code generated)') 7 missing=$(echo "$result" | wc -w) 8 if [ $missing != 0 ]; then 9 echo "The following files are missing copyright headers" 10 echo "$result" 11 exitstatus=1 12 fi 13 exit $exitstatus