equal
deleted
inserted
replaced
|
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 the License "Symbian Foundation License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.symbianfoundation.org/legal/sfl-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; |