buildframework/helium/external/helium-antlib/imaker/tests/epocroot/imaker_mock.py
author wbernard
Wed, 23 Dec 2009 19:29:07 +0200
changeset 179 d8ac696cc51f
permissions -rw-r--r--
helium_7.0-r14027

#============================================================================ 
#Name        : imaler_mock.py 
#Part of     : Helium 

#Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
#All rights reserved.
#This component and the accompanying materials are made available
#under the terms of the License "Eclipse Public License v1.0"
#which accompanies this distribution, and is available
#at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
#Initial Contributors:
#Nokia Corporation - initial contribution.
#
#Contributors:
#
#Description:
#===============================================================================

import sys
print "iMaker 09.24.01, 10-Jun-2009."

if sys.argv.count("version"):
    print ""
    sys.exit(0)

if sys.argv.count("help-target-*-list") and sys.argv.count("/epoc32/rom/config/platform/product/image_conf_invalid.mk"):
    print """mingw_make: /epoc32/rom/config/platform/product/image_conf_invalid.mk: No such file or directory
mingw_make: *** No rule to make target `/epoc32/rom/config/platform/product/image_conf_invalid.mk'.  Stop.
*** Error: Command `\epoc32\tools\rom\imaker\mingw_make.exe -R --no-print-directory SHELL="C:\WINNT\system32\cmd.exe" -I
 B:/epoc32/rom/config -f B:/epoc32/tools/rom/imaker/imaker.mk TIMESTAMP=2009102317302243    -f /epoc32/rom/config/platform/
product/image_conf_invalid.mk  -f B:/epoc32/tools/rom/imaker/imaker.mk help-target-*-list' failed in `/'.
"""
    sys.exit(1)

if sys.argv.count("help-config"):
    print "Finding available configuration file(s):"
    print "/epoc32/rom/config/platform/product/image_conf_product.mk"
    print "/epoc32/rom/config/platform/product/image_conf_product_ui.mk"
    print ""
    sys.exit(0)

if sys.argv.count("help-target-*-list"):
    # start with some kind of warnings...
    print "B:/epoc32/tools/rom/imaker/imaker_help.mk:55: memory_map_settings2.hrh: No such file or directory"
    print "all"
    print "core"
    print "core-dir"
    print "help-%-list"
    print "langpack_01"
    print ""
    sys.exit(0)

if sys.argv.count("-f") and sys.argv.count("print-VARIABLE"):
    print "VARIABLE = `PRODUCT_VALUE'"
    print ""
    sys.exit(0)

if sys.argv.count("print-VARIABLE"):
    print "VARIABLE = `VALUE'"
    print ""
    sys.exit(0)

if sys.argv.count("print-NOTEXISTSVARIABLE"):
    print ""
    sys.exit(0)

print ""
sys.exit(0)