diff options
Diffstat (limited to 'dist/s_copyright')
-rwxr-xr-x | dist/s_copyright | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/dist/s_copyright b/dist/s_copyright index 15697ad4706..a0e3d588e18 100755 --- a/dist/s_copyright +++ b/dist/s_copyright @@ -11,7 +11,8 @@ trap 'rm -f $c1 $c2 $c3 $c4; exit 0' 0 1 2 3 13 15 year=`date +%Y` cat > $c1 <<ENDOFTEXT - * Copyright (c) 2008-$year WiredTiger, Inc. + * Copyright (c) 2014-$year MongoDB, Inc. + * Copyright (c) 2008-2014 WiredTiger, Inc. * All rights reserved. * * See the file LICENSE for redistribution information. @@ -19,20 +20,23 @@ ENDOFTEXT # Copyright for files WiredTiger does not own. cat > $c2 <<ENDOFTEXT - * Public Domain 2008-$year WiredTiger, Inc. + * Public Domain 2014-$year MongoDB, Inc. + * Public Domain 2008-2014 WiredTiger, Inc. * * This is free and unencumbered software released into the public domain. ENDOFTEXT cat > $c3 <<ENDOFTEXT -# Copyright (c) 2008-$year WiredTiger, Inc. +# Copyright (c) 2014-$year MongoDB, Inc. +# Copyright (c) 2008-2014 WiredTiger, Inc. # All rights reserved. # # See the file LICENSE for redistribution information. ENDOFTEXT cat > $c4 <<ENDOFTEXT -# Public Domain 2008-$year WiredTiger, Inc. +# Public Domain 2014-$year MongoDB, Inc. +# Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. ENDOFTEXT @@ -49,19 +53,19 @@ check() test -f ../$i || return # Check for a correct copyright header. - if `sed -e 2,4p -e 5q -e d ../$1 | diff - $c1 > /dev/null` ; then + if `sed -e 2,5p -e 6q -e d ../$1 | diff - $c1 > /dev/null` ; then return; fi - if `sed -e 2,3p -e 4q -e d ../$1 | diff - $c2 > /dev/null` ; then + if `sed -e 2,4p -e 5q -e d ../$1 | diff - $c2 > /dev/null` ; then return; fi - if `sed -e 3,5p -e 6q -e d ../$1 | diff - $c3 > /dev/null` ; then + if `sed -e 3,6p -e 7q -e d ../$1 | diff - $c3 > /dev/null` ; then return; fi - if `sed -e 3,4p -e 5q -e d ../$1 | diff - $c4 > /dev/null` ; then + if `sed -e 3,5p -e 6q -e d ../$1 | diff - $c4 > /dev/null` ; then return; fi - if `sed -e 1,2p -e 3q -e d ../$1 | diff - $c4 > /dev/null` ; then + if `sed -e 1,3p -e 4q -e d ../$1 | diff - $c4 > /dev/null` ; then return; fi @@ -86,17 +90,20 @@ do done # A few special cases: LICENSE, documentation, wt utility, some of which -# have more than one copyright notice in the file. -s="Copyright (c) 2008-$year WiredTiger, Inc." +# have more than one copyright notice in the file. For files that have +# only a single copyright notice, we give it to MongoDB, from 2008 to now. +string1="Copyright \(c\) 2014-$year MongoDB, Inc." +string2="Copyright \(c\) 2008-$year MongoDB, Inc." +string3="printf.*Copyright \(c\) 2008-$year MongoDB, Inc." special_copyright() { - cnt=`grep "$s" ../$1 | wc -l` + cnt=`egrep "$3" ../$1 | wc -l` if test $cnt -ne $2; then echo "$1: copyright information is incorrect" fi } -special_copyright LICENSE 1 -special_copyright src/docs/build-javadoc.sh 1 -special_copyright src/docs/style/footer.html 2 -special_copyright src/utilities/util_cpyright.c 2 +special_copyright LICENSE 1 "$string1" +special_copyright src/docs/build-javadoc.sh 1 "$string2" +special_copyright src/docs/style/footer.html 2 "$string2" +special_copyright src/utilities/util_cpyright.c 1 "$string3" |