@@ -1,7 +1,7 @@
4−# Copyright (C) 2013 Canonical Ltd
4+# Copyright (C) 2017 Canonical Ltd
6# This program is free software: you can redistribute it and/or modify
6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License version 3 as
7# it under the terms of the GNU General Public License version 3 as
@@ -15,8 +15,6 @@
15# You should have received a copy of the GNU General Public License
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
18−# Authored by: Michi Henning <michi.henning@canonical.com>
22# Check that, somewhere in the first 30 lines of each file, the string "Copyright" (case independent) appears.
20# Check that, somewhere in the first 30 lines of each file, the string "Copyright" (case independent) appears.
@@ -33,7 +31,38 @@ usage()
33[ $# -lt 1 ] && usage
31[ $# -lt 1 ] && usage
34[ $# -gt 2 ] && usage
32[ $# -gt 2 ] && usage
36−ignore_pat="\\.sci$"
35+ignore_pat="\\.sci$|\\.svg$|\\.png$|\\.jpg$"
37+ignore_pat="$ignore_pat|/\\.bzr/|\\.bzrignore$|\\.gitignore$|/\\.bazaar/Makefile$|/\\.bzr-builddeb/default\\.conf$"
39+ignore_pat="$ignore_pat|/README$|/CODING$|/LGPL_EXCEPTION\\.txt$"
41+ignore_pat="$ignore_pat|/CMakeLists\\.txt$|\\.cmake$"
42+# card creator test files
43+ignore_pat="$ignore_pat|/cardcreator/.*\\.res$|/cardcreator/.*\\.res\\.cardcreator$|/cardcreator/.*\\.tst$"
45+ignore_pat="$ignore_pat|/\\.project$|/\\.pydevproject$|/\\.settings/|/\\.crossbuilder/"
47+ignore_pat="$ignore_pat|/tests/.*/.*\\.desktop$"
49+ignore_pat="$ignore_pat|\\.xml$"
51+ignore_pat="$ignore_pat|/data/.*\\.conf$|/data/.*\\.in|/data/.*\\.url-dispatcher$|/data/.*\\.pkla$"
53+ignore_pat="$ignore_pat|\\.pkla$"
55+ignore_pat="$ignore_pat|/debian/"
57+ignore_pat="$ignore_pat|/qmldir$"
59+ignore_pat="$ignore_pat|/Doxyfile.in$"
60+# Wizard license files
61+ignore_pat="$ignore_pat|/Wizard/licenses/.*\\.html$"
63+ignore_pat="$ignore_pat|\\.qrc$"
64+# the doc devices.conf file
65+ignore_pat="$ignore_pat|/doc/devices\\.conf$"
39# We don't use the -i option of licensecheck to add ignore_dir to the pattern because Jenkins creates directories
68# We don't use the -i option of licensecheck to add ignore_dir to the pattern because Jenkins creates directories