The automatic copyright year check didn't consider files that were also
uncrustified. Also removed some extra code (that had no effect) from
the script that looks like incorrectly merged or pasted.
Also fix incorrect attribute for thread_mpi/CMakeLists.txt.
Part of #818.
Change-Id: I80ce1b936fa9b77a94eb3dfe8fcff0490a886f42
src/gromacs/gmxlib/gpu_utils/memtestG80_core.* !filter
src/gromacs/gmxlib/nonbonded/preprocessor/gmxpreprocess.py !filter
**/thread_mpi/** filter=uncrustify_only
src/gromacs/gmxlib/gpu_utils/memtestG80_core.* !filter
src/gromacs/gmxlib/nonbonded/preprocessor/gmxpreprocess.py !filter
**/thread_mpi/** filter=uncrustify_only
+src/gromacs/gmxlib/thread_mpi/CMakeLists.txt !filter
src/gromacs/legacyheaders/thread_mpi.h filter=uncrustify_only
src/gromacs/legacyheaders/tmpi.h filter=uncrustify_only
src/gromacs/linearalgebra/gmx_blas/* !filter
src/gromacs/legacyheaders/thread_mpi.h filter=uncrustify_only
src/gromacs/legacyheaders/tmpi.h filter=uncrustify_only
src/gromacs/linearalgebra/gmx_blas/* !filter
#
# This file is part of the GROMACS molecular simulation package.
#
#
# This file is part of the GROMACS molecular simulation package.
#
-# Copyright (c) 2013, by the GROMACS development team, led by
+# Copyright (c) 2013,2014, by the GROMACS development team, led by
# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
# and including many others, as listed in the AUTHORS file in the
# top-level source directory and at http://www.gromacs.org.
# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
# and including many others, as listed in the AUTHORS file in the
# top-level source directory and at http://www.gromacs.org.
cut -f2 <$tmpdir/filtered >$tmpdir/filelist_all
grep -E '(uncrustify|uncrustify_only)$' <$tmpdir/filtered | \
cut -f2 >$tmpdir/filelist_uncrustify
cut -f2 <$tmpdir/filtered >$tmpdir/filelist_all
grep -E '(uncrustify|uncrustify_only)$' <$tmpdir/filtered | \
cut -f2 >$tmpdir/filelist_uncrustify
-grep 'copyright$' <$tmpdir/filtered | \
+grep -E '(uncrustify|copyright)$' <$tmpdir/filtered | \
cut -f2 >$tmpdir/filelist_copyright
git diff-files --name-only | grep -Ff $tmpdir/filelist_all >$tmpdir/localmods
cut -f2 >$tmpdir/filelist_copyright
git diff-files --name-only | grep -Ff $tmpdir/filelist_all >$tmpdir/localmods
*)
echo "Unknown copyright mode: $copyright_mode"
exit 2
*)
echo "Unknown copyright mode: $copyright_mode"
exit 2
- if [[ $copyright -eq 2 ]] ; then
- cpscript_args+=" --update-header"
- fi
esac
if [[ $action == check-* ]] ; then
cpscript_args+=" --check"
esac
if [[ $action == check-* ]] ; then
cpscript_args+=" --check"