group/update_version_h.pl
branchRCL_3
changeset 24 e06095241a65
parent 23 473321461bba
equal deleted inserted replaced
23:473321461bba 24:e06095241a65
     1 #
     1 #
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 # Copyright (c) 2009-2010 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 = "5_0";
    22 my $PLATFORM_LONG = "4_2";
    23 my $PLATFORM_SHORT = "50";
    23 my $PLATFORM_SHORT = "42";
    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 
       
    78 ### VERSION.H ###########
    75 ### VERSION.H ###########
    79 
    76 
    80 # version.h
    77 # version.h
    81 update_version_h(
    78 update_version_h(
    82     'vpnengine/vpncommon/inc/version.h',
    79     '../vpnengine/vpncommon/inc/version.h',
    83     $PLATFORM_LONG);
    80     $PLATFORM_LONG);
    84 
       
    85 chdir $oldpwd;