group/update_version_h.pl
branchRCL_3
changeset 23 473321461bba
parent 22 9f4e37332ce5
child 24 e06095241a65
equal deleted inserted replaced
22:9f4e37332ce5 23:473321461bba
     1 #
     1 #
     2 # Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 # All rights reserved.
     3 # All rights reserved.
     4 # This component and the accompanying materials are made available
     4 # This component and the accompanying materials are made available
     5 # under the terms of "Eclipse Public License v1.0"
     5 # under the terms of "Eclipse Public License v1.0"
     6 # which accompanies this distribution, and is available
     6 # which accompanies this distribution, and is available
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
    17 
    17 
    18 use strict;
    18 use strict;
    19 use Cwd;
    19 use Cwd;
    20 use POSIX qw(strftime);
    20 use POSIX qw(strftime);
    21 
    21 
    22 my $PLATFORM_LONG = "4_2";
    22 my $PLATFORM_LONG = "5_0";
    23 my $PLATFORM_SHORT = "42";
    23 my $PLATFORM_SHORT = "50";
    24 
    24 
    25 sub update_version_h
    25 sub update_version_h
    26 {
    26 {
    27 	my ($version_path, $platform) = @_;
    27 	my ($version_path, $platform) = @_;
    28 	
    28 	
    70 	close $infile;
    70 	close $infile;
    71 	close $outfile;
    71 	close $outfile;
    72 }
    72 }
    73 
    73 
    74 
    74 
       
    75 my $oldpwd = getcwd();
       
    76 chdir "..";
       
    77 
    75 ### VERSION.H ###########
    78 ### VERSION.H ###########
    76 
    79 
    77 # version.h
    80 # version.h
    78 update_version_h(
    81 update_version_h(
    79     '../vpnengine/vpncommon/inc/version.h',
    82     'vpnengine/vpncommon/inc/version.h',
    80     $PLATFORM_LONG);
    83     $PLATFORM_LONG);
       
    84 
       
    85 chdir $oldpwd;