forked from qt-creator/qt-creator
Update copyright check script
Use perl instead of bash and avoid lots of rereading of the file, making the script much faster to run. Change-Id: Ic898f324b2952c593b89d8efca8ea1e344cf5858 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
# Prepend a copyright header to all files given on the command line.
|
||||
# Sample usage:
|
||||
# find . -type f -name \*.cpp -o -name \*.h | \
|
||||
# xargs ~/bin/hasCopyright.sh | grep ": NO COPYRIGHT" | grep "^./src/" | \
|
||||
# cut -d ':' -f1 | xargs ~/bin/fixCopyright.sh /tmp/copyright.txt
|
||||
# xargs ~/bin/hasCopyright.pl | grep ": No copyright, NOK" | grep "^./src/" | \
|
||||
# cut -d ':' -f1 | xargs ~/bin/fixCopyright.sh dist/copyright_template.txt
|
||||
|
||||
COPYRIGHT_HEADER=$1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user