github.com/unigraph-dev/dgraph@v1.1.1-0.20200923154953-8b52b426f765/contrib/scripts/license.sh (about) 1 files=$(find . ! -path "./vendor/*" ! -path "./bp128/*" ! -path "./protos/*" -type f -name "*.go") 2 3 for f in $files; do 4 echo "Processing $f" 5 python2 contrib/scripts/license.py $f 6 7 # Start from year. 8 year=$(git log --format=%aD $f | tail -1 | awk '{print $4}') 9 if [ "$year" != "2018" ]; then 10 sed -i "s/Copyright 2018 Dgraph/Copyright $year-2018 Dgraph/g" $f 11 fi 12 13 # Format it. 14 gofmt -w $f 15 done