diff --git a/add_license.sh b/add_license.sh index cd5358a0c999a600e2419f88b5a0bce8df20d21e..f2b79f29c12d27846746130c43fa0d9ebfb092c3 100755 --- a/add_license.sh +++ b/add_license.sh @@ -1,6 +1,7 @@ #!/bin/bash find "$@" -name '*.h' -o -name '*.cpp' -o -name '*.qml' | grep -v /3rdparty/ | while read FILE; do + if grep -qiE "SPDX" "$FILE"; then continue; fi if grep -qiE "Copyright \(C\) [0-9, -]{4,} " "$FILE" ; then continue; fi thisfile=`basename $FILE` authorName=`git config user.name`