sysmodellibs/sysmodelgen/src/old/svg/DrawSvg.pl
changeset 6 5b32dc297d05
parent 1 b538b70cbe51
equal deleted inserted replaced
3:e7e0ae78773e 6:5b32dc297d05
       
     1 #!perl
       
     2 # Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description:
       
    15 #
       
    16 
       
    17 use strict;
       
    18 use warnings;
       
    19 use FindBin;
       
    20 use lib $FindBin::Bin;
       
    21 use lib $FindBin::Bin."/svg";
       
    22 
       
    23 use lib $FindBin::Bin."/../..";
       
    24 use SysModelGen;
       
    25 
       
    26 use DrawSvg;
       
    27 my %versions = &DrawSvg::SchemaVersionsFromArgs(@ARGV);
       
    28 my $drawer = new DrawSvg();
       
    29 
       
    30 
       
    31 foreach my $v (grep /^3\./,keys(%versions))
       
    32 	{ # need to downgrade anything in 3.x syntax
       
    33 	my $i=0;
       
    34 	foreach my $sys (@{$versions{$v}})
       
    35 		{
       
    36 		$i++;
       
    37 		$drawer->Downgrade($sys,"sysdef$i.xml");
       
    38 		}
       
    39 	}
       
    40 
       
    41 $drawer->Draw();
       
    42 
       
    43 exit;