revert between 56095 -> 55830 in arch
[AROS.git] / workbench / classes / zune / texteditor / tools / update_copyright.sh
blob20ccd83aed19174011c1be3f13dd6fb76a7f44cd
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).*2005-.*TextEditor\.mcc Open Source Team/Copyright (C) 2005-${YEAR} TextEditor.mcc Open Source Team/g" {} \;