secureswitools/swisistools/source/signsis/parameter.cpp
branchRCL_3
changeset 81 42552535c1ac
parent 62 5cc91383ab1e
equal deleted inserted replaced
73:79647526f98c 81:42552535c1ac
     1 /*
     1 /*
     2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2004-2009 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 the License "Eclipse Public License v1.0"
     5 * under the terms of the License "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".
    56 
    56 
    57 	iSign = true;
    57 	iSign = true;
    58 
    58 
    59 	for (int index = 1; index < argc; index++)
    59 	for (int index = 1; index < argc; index++)
    60 		{
    60 		{
    61  			// WINDOWS ENVIRONMENT : If the underlying platform is WINDOWS then, 
    61 		if (	(argv [index][0] == '-') ||
    62  			// cope up with multiple arguments following the '-' or '/'. 
    62 				(argv [index][0] == '/'))
    63  			//
       
    64  			// LINUX ENVIRONMENT : If the underlying platform is LINUX then, cope 
       
    65  			// up with multiple arguments following only the '-'. This restriction 
       
    66  			// of not dealing with arguments following '/' is due to the fact that, 
       
    67  			// the absolute paths in case of LINUX start with a '/'. So, this could 
       
    68  			// be mistaken as an option if we treat anything prefixed by a '/' as 
       
    69  			// an option. Hence, this facility is being removed once for all and 
       
    70  			// only '-' can(should) be used for specifying an option.
       
    71 		    if (	   (argv [index][0] == '-')   
       
    72 #ifndef __LINUX__			
       
    73 				    || (argv [index][0] == '/')
       
    74 #endif
       
    75 			   )
       
    76 			{
    63 			{
       
    64  			// cope with multiple arguments following the '-' or '/'
    77  			int wCharacter = 1;
    65  			int wCharacter = 1;
    78  			while (argv[index][wCharacter] !='\0')
    66  			while (argv[index][wCharacter] !='\0')
    79 				{
    67 				{
    80 				switch (argv [index][wCharacter])
    68 				switch (argv [index][wCharacter])
    81 					{
    69 					{
   389 void CParameter::ShowBanner()
   377 void CParameter::ShowBanner()
   390 // Displays the copyright...
   378 // Displays the copyright...
   391 	{
   379 	{
   392 	std::cout << std::endl << "SIGNSIS  " << " Version  5.1" << std::endl;
   380 	std::cout << std::endl << "SIGNSIS  " << " Version  5.1" << std::endl;
   393 	std::cout << "A utility for signing Software Installation (SIS) files." << std::endl;
   381 	std::cout << "A utility for signing Software Installation (SIS) files." << std::endl;
   394 	std::cout << "Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved." << std::endl;
   382 	std::cout << "Copyright (c) 2007 Symbian Software Ltd. All rights reserved. " << std::endl;
   395 #ifdef _DEBUG
   383 #ifdef _DEBUG
   396 	std::cout << std::endl << "Development Version" << std::endl;
   384 	std::cout << std::endl << "Development Version" << std::endl;
   397 #endif
   385 #endif
   398 	std::cout << std::endl;
   386 	std::cout << std::endl;
   399 	}
   387 	}