Merging NList MCC 0.119 into the main branch.
[AROS.git] / workbench / classes / zune / nlist / tools / update_copyright.sh
blobe1e0c9bda064d2f247ec3fba0b1bc6b1267912a7
1 #!/bin/sh
3 # simply bumps the year in all copyright and header files to the latest one
5 # WARNING: This script will run over ALL files regardless if they are text
6 # or binary files and search for the copyright notice and replace it
7 # immediately. So you need to be aware of that
10 YEAR=`date +%Y`
12 # walk through the whole directory this script is called in and search
13 # for files which we will try to update the Copyright notice
14 find . \( -not -path "*/.svn/*" -not -name "update_copyright.sh" \) -type f \
15 -exec sed -i "s/Copyright.*(C).*2001-.*NList Open Source Team/Copyright (C) 2001-${YEAR} NList Open Source Team/g" {} \;