Commit ca7ea5a0 authored by Guillaume Roguez's avatar Guillaume Roguez

tools: update update-copyright script

add for handled files and cases

Change-Id: Iafbc3a07e8d19b4fb116630006b5fcc08ad5f448
Tuleap: #454
parent 5dab6660
# Copyright (C) 2004-2015 Savoir-faire Linux Inc.
# Copyright (C) 2004-2016 Savoir-faire Linux Inc.
# Author: Emmanuel Milou <>
......@@ -20,7 +20,7 @@
# List all files in current directory
FILES=`find -name "*.h" -o -name "*.c" -o -name "*.cpp" -o -name "*.i" -o -name "README" -o -name "*.sh" -o -name "*.py" -o -name "*.mm"`
FILES=`find -name "*.h" -o -name "*.c" -o -name "*.cpp" -o -name "*.i" -o -name "README" -o -name "*.sh" -o -name "*.py" -o -name "*.mm" -o -name "update-copyright" -o -name "*.patch" -o -name "copyright"`
year=`date +%Y`
# Loop and replace
......@@ -28,6 +28,7 @@ for f in $FILES
sed -i "/$year/b; s/\-[0-9]\+ Savoir-[fF]aire Linux Inc/-$year Savoir-faire Linux Inc/g" $f
sed -i "/$year/b; s/ \([0-9]\+\) Savoir-[fF]aire Linux Inc/ \1-$year Savoir-faire Linux Inc/g" $f
sed -i "/$year/b; s/Savoir-[fF]aire Linux \([0-9]\+\)\-[0-9]\+/Savoir-faire Linux \1-$year/g" $f
exit 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment