aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/fixCopyright.sh
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2012-10-04 18:52:06 +0200
committerhjk <qthjk@ovi.com>2012-10-05 11:49:06 +0200
commitffb90dff22f411176f10dedc85778a348ea2852f (patch)
tree18c975eda1e6aaf86f0d5a55370ac309f87af64d /scripts/fixCopyright.sh
parentecf8b82cdc1bbf0bc2f9ef4d6196772b8fb700c2 (diff)
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>
Diffstat (limited to 'scripts/fixCopyright.sh')
-rwxr-xr-xscripts/fixCopyright.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/fixCopyright.sh b/scripts/fixCopyright.sh
index cdc3a57a70..706a0f2c2b 100755
--- a/scripts/fixCopyright.sh
+++ b/scripts/fixCopyright.sh
@@ -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