Skip to content
Snippets Groups Projects
Commit ca7ea5a0 authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

tools: update update-copyright script

add for handled files and cases

Change-Id: Iafbc3a07e8d19b4fb116630006b5fcc08ad5f448
Tuleap: #454
parent 5dab6660
Branches
No related tags found
No related merge requests found
#!/bin/bash
# Copyright (C) 2004-2015 Savoir-faire Linux Inc.
# Copyright (C) 2004-2016 Savoir-faire Linux Inc.
#
# Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
#
......@@ -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
do
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
done
exit 0;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment