github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/copyright.sh (about)

     1  #!/bin/sh
     2  
     3  FILES=`find $1 -type f -name '*.go'`
     4  
     5  for f in $FILES
     6  do
     7  	head -1 $f | grep "Copyright"
     8  	if [ $? -ne  0 ]; then
     9  		tmp=`mktemp $f.XXXXX`
    10  		cat copyright.txt >> $tmp
    11  		cat $f >> $tmp
    12  		mv $tmp $f
    13  	fi
    14  done