buildframework/helium/sf/java/sysdef/demo/data/sf/os/buildtools/bldsystemtools/sysdeftools/joinsysdef_mock.py
equal
deleted
inserted
replaced
|
1 #============================================================================ |
|
2 #Name : joinsysdef_mock.py |
|
3 #Part of : Helium |
|
4 |
|
5 #Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
6 #All rights reserved. |
|
7 #This component and the accompanying materials are made available |
|
8 #under the terms of the License "Eclipse Public License v1.0" |
|
9 #which accompanies this distribution, and is available |
|
10 #at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
11 # |
|
12 #Initial Contributors: |
|
13 #Nokia Corporation - initial contribution. |
|
14 # |
|
15 #Contributors: |
|
16 # |
|
17 #Description: |
|
18 #=============================================================================== |
|
19 |
|
20 import sys |
|
21 import shutil |
|
22 |
|
23 print "Command run:" |
|
24 print " ".join(sys.argv) |
|
25 |
|
26 includes = [] |
|
27 if '-config' in sys.argv: |
|
28 config = sys.argv[sys.argv.index('-config') + 1] |
|
29 src = sys.argv[-1] |
|
30 |
|
31 if '-output' in sys.argv: |
|
32 dst = sys.argv[sys.argv.index('-output') + 1] |
|
33 shutil.copyfile(src, dst) |
|
34 |