diff options
author | Teemu Kaukoranta <teemu.kaukoranta@digia.com> | 2013-05-27 12:18:57 +0300 |
---|---|---|
committer | Teemu Kaukoranta <teemu.kaukoranta@digia.com> | 2013-05-28 09:29:50 +0200 |
commit | 188e960e496ad31839ab879e139c4f1cf9f10656 (patch) | |
tree | 2a2fb6648c712004a80d854c3041a0520493030f /tests/tools | |
parent | fa2e571b6c68aa9439a88fc7ab441b6e091268df (diff) |
Replaced Nokia copyrights and contact details
Replaced Nokia copyrights with correct Digia copyrights.
Text in front of copyright is now retained:
** File is part of Foo, Copyright Nokia... ->
** File is part of Foo, Copyright Digia...
Replaced Nokia contact details with Digia's.
Removing "All Rights Reserved" no longer leaves an empty line.
Used the following command:
find . -path '*/3rdparty/*' -prune -o -exec grep -ilI -E
'.*Copyright.*Nokia.*|.*Contact.*' {} \; | tee >(xargs sed -i -r
'1,50 { /INdT|copy[a-z]*[ ]*=/ !{ s/(^[ \t:#*]*)([a-z ]*)
(Copyright.*Nokia.*)/
\1\2Copyright \(C\) 2013 Digia Plc and\/or its subsidiary\(-ies\)\./I
}}') >(xargs sed -i -r '1,50 s/(^[ \t:#*]*)(.*info@qt\.nokia\.com.*
|.*INSERT EMAIL ADDRESS.*|.*qt-info@nokia\.com.*
|.*qt-label1@nokia\.com.*|.*http:\/\/qt\.nokia\.com\/contact.*
|.*qt-sales@nokia\.com.*|.*http:\/\/www\.qt-project\.org\/.*)/
\1Contact: http:\/\/www\.qt-project\.org\/legal/I')
>(xargs sed -i -r '1,50{/(^[ \t:#*]*)(all rights reserved.*)/Id}')
Command now finds command details that point to qt-project.org and
changes them to qt-project.org/legal
Also no longer wrongly replaces code snippet "copyright = ..". Need to
fix these case-by-case later.
Change-Id: I4456c00202c4a2264a400bdc18c19cd097876861
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Diffstat (limited to 'tests/tools')
-rwxr-xr-x | tests/tools/list-class-hierarchy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tools/list-class-hierarchy.py b/tests/tools/list-class-hierarchy.py index a4faf60ab..25f1ae96c 100755 --- a/tests/tools/list-class-hierarchy.py +++ b/tests/tools/list-class-hierarchy.py @@ -2,7 +2,7 @@ # This file is part of PySide: Python for Qt # -# Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +# Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). # # Contact: PySide team <contact@pyside.org> # |