bldsystemtools/commonbldutils/SFUpdateLicenceHeader.pl
branchRCL_3
changeset 2 99082257a271
parent 0 83f4b4db085c
child 3 8a441e81fe63
equal deleted inserted replaced
1:d4b442d23379 2:99082257a271
     1 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 # This component and the accompanying materials are made available
     2 # All rights reserved.
     3 # under the terms of the License "Eclipse Public License v1.0"
     3 # This material, including documentation and any related 
     4 # which accompanies this distribution, and is available
     4 # computer programs, is protected by copyright controlled by 
     5 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     5 # Nokia. All rights are reserved. Copying, including 
       
     6 # reproducing, storing, adapting or translating, any 
       
     7 # or all of this material requires the prior written consent of 
       
     8 # Nokia. This material also contains confidential 
       
     9 # information which may not be disclosed to others without the 
       
    10 # prior written consent of Nokia.
     6 #
    11 #
     7 # Initial Contributors:
    12 # Contributors:
     8 # Nokia Corporation - initial contribution
    13 #     matti.parnanen@nokia.com
     9 #
    14 #     pasi.kauraniemi@nokia.com
    10 # Contributors
    15 # 
    11 #
       
    12 # Description: Replace S60 header with Symbian Foundation license header.
    16 # Description: Replace S60 header with Symbian Foundation license header.
    13 #              Output file (results) is compatibe for SFMakeLxrLinks.pl as input.
    17 #              Output file (results) is compatibe for SFMakeLxrLinks.pl as input.
    14 #
    18 #
    15 use strict;
    19 use strict;
    16 use File::Find;
    20 use File::Find;
   142 my $SFLicenseHeader = 
   146 my $SFLicenseHeader = 
   143 '/*
   147 '/*
   144 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
   148 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
   145 * All rights reserved.
   149 * All rights reserved.
   146 * This component and the accompanying materials are made available
   150 * This component and the accompanying materials are made available
   147 * under the terms of the License "Symbi'.'an Foundation License v1.0"
   151 * under the terms of "Eclipse Public License v1.0"
   148 * which accompanies this distribution, and is available
   152 * which accompanies this distribution, and is available
   149 * at the URL "http://www.symbi'.'anfoundation.org/legal/sf'.'l-v10.html".
   153 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   150 *
   154 *
   151 * Initial Contributors:
   155 * Initial Contributors:
   152 * Nokia Corporation - initial contribution.
   156 * Nokia Corporation - initial contribution.
   153 *
   157 *
   154 * Contributors:
   158 * Contributors:
   173 my $SFLicenseHeader_other_template = 
   177 my $SFLicenseHeader_other_template = 
   174 '#
   178 '#
   175 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
   179 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
   176 # All rights reserved.
   180 # All rights reserved.
   177 # This component and the accompanying materials are made available
   181 # This component and the accompanying materials are made available
   178 # under the terms of the License "Symbi'.'an Foundation License v1.0"
   182 # under the terms of the License "Eclipse Public License v1.0"
   179 # which accompanies this distribution, and is available
   183 # which accompanies this distribution, and is available
   180 # at the URL "http://www.symbi','anfoundation.org/legal/sf'.'l-v10.html".
   184 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
   181 #
   185 #
   182 # Initial Contributors:
   186 # Initial Contributors:
   183 # Nokia Corporation - initial contribution.
   187 # Nokia Corporation - initial contribution.
   184 #
   188 #
   185 # Contributors:
   189 # Contributors:
  1426 ##################################################
  1430 ##################################################
  1427 # Switch only license text  and URL
  1431 # Switch only license text  and URL
  1428 my $sflText = '"Symbian Foundation License v1.0"';
  1432 my $sflText = '"Symbian Foundation License v1.0"';
  1429 my $sflTextPattern = '(the\s*License\s*)?\"Symbian\s*Foundation\s*License\s*v1\.0\"'; 
  1433 my $sflTextPattern = '(the\s*License\s*)?\"Symbian\s*Foundation\s*License\s*v1\.0\"'; 
  1430 my $sflUrlPattern = 'http\:\/\/www\.symbianfoundation\.org\/legal\/sfl\-v10\.html';
  1434 my $sflUrlPattern = 'http\:\/\/www\.symbianfoundation\.org\/legal\/sfl\-v10\.html';
  1431 my $sflUrl = 'http://www.symbianfoundation.org/legal/sf'.'l-v10.html';
  1435 my $sflUrl = 'http://www.symbianfoundation.org/legal/sfl-v10.html';
  1432 my $eplText = '"Eclipse Public License v1.0"';
  1436 my $eplText = '"Eclipse Public License v1.0"';
  1433 my $eplUrl = 'http://www.eclipse.org/legal/epl-v10.html';
  1437 my $eplUrl = 'http://www.eclipse.org/legal/epl-v10.html';
  1434 my $eplUrlPattern = 'http\:\/\/www\.eclipse\.org\/legal\/epl\-v10\.html';
  1438 my $eplUrlPattern = 'http\:\/\/www\.eclipse\.org\/legal\/epl\-v10\.html';
  1435 my $eplTextPattern = '"Eclipse\s*Public\s*License\s*v1\.0"';
  1439 my $eplTextPattern = '"Eclipse\s*Public\s*License\s*v1\.0"';
  1436 my $oldEplTextPattern = 'the\s*License\s*"Eclipse\s*Public\s*License\s*v1\.0'; # "the License" is unncessary
  1440 my $oldEplTextPattern = 'the\s*License\s*"Eclipse\s*Public\s*License\s*v1\.0'; # "the License" is unncessary