Hash :
50be00d3
Author :
Date :
2015-01-17T20:38:31
Add some tools to handle yearly copyright notice updates. We are now following the GNU guidelines: A new release automatically means that the copyright year of all affected files gets updated; it is no longer used to track years of modification changes. * src/tools/update-copyright-year: New Perl script. * src/tools/update-copyright: New shell script that calls `update-copyright-year' on all files. * src/tools/no-copyright: Exceptions that should not be handled by `update-copyright'
#!/bin/sh
# Run the `update-copyright-year' script on all files in the git repository,
# taking care of exceptions stored in file `no-copyright'.
topdir=`git rev-parse --show-toplevel`
toolsdir=$topdir/src/tools
git ls-files $topdir \
| sed 's|^|./|' \
| grep -vFf $toolsdir/no-copyright \
| xargs $toolsdir/update-copyright-year
# EOF