summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-09-09 11:31:07 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-09-09 11:31:07 +0000
commit5c083012d036c681d60305e06034df8ef9deda0a (patch)
tree1253c165be9b51ef7b19ba89fbd02ed58d5316c5 /tools
parent1eb580e8e72f56956ccb16818c5becbfe239abe1 (diff)
downloadmpfr-5c083012d036c681d60305e06034df8ef9deda0a.tar.gz
[tools/ck-copyright-notice] Check that the first copyright year for
the mparam.h files is 2005. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7814 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ck-copyright-notice13
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/ck-copyright-notice b/tools/ck-copyright-notice
index d3c2f4635..dadf90f25 100755
--- a/tools/ck-copyright-notice
+++ b/tools/ck-copyright-notice
@@ -21,9 +21,16 @@ srctests=`find src tests -name '*.[ch]'`
err=0
for file in $srctests
do
- [ "$file" = "tests/RRTest.c" ] && continue
- [ "$file" = "src/get_patches.c" ] && file="tools/get_patches.sh"
- grep -q "Copyright .* Free Software Foundation" "$file" && \
+ y=""
+ case $file in
+ tests/RRTest.c)
+ continue ;;
+ src/get_patches.c)
+ file="tools/get_patches.sh" ;;
+ */mparam.h)
+ y="2005," ;;
+ esac
+ grep -q "Copyright $y.* Free Software Foundation" "$file" && \
grep -q "GNU MPFR Library" "$file" && \
grep -q "either version $lgpl of the License" "$file" && continue
echo "Possibly missing or incorrect copyright notice in $file"