From 3e99020dbf0a159e34b84e7ae9125f2e368d5390 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Fri, 26 Nov 2010 01:54:49 +0000 Subject: Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11094 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Sample/Tools/Source/GuidChk/GuidChk.c | 48 +++++++++++++--------- 1 file changed, 29 insertions(+), 19 deletions(-) (limited to 'EdkCompatibilityPkg/Sample/Tools/Source/GuidChk') diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/GuidChk.c b/EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/GuidChk.c index 7b9aa041c5..f1084a3cd9 100644 --- a/EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/GuidChk.c +++ b/EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/GuidChk.c @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -38,6 +38,9 @@ Abstract: #define MAX_PATH 1024 #endif +#define UTILITY_NAME "GuidChk" +#define UTILITY_VERSION "v1.0" + typedef struct { INT8 *Extension; INT8 ExtensionCode; @@ -593,25 +596,32 @@ Usage ( VOID ) { - int Index; - char *Str[] = { - "GuidChk - scan files for duplicate GUID or signature definitions", - "", - "Usage: GuidChk {options}\n", - " Options: ", - " -d dirname exclude searching of a directory", - " -f filename exclude searching of a file", - " -e extension exclude searching of files by extension", - " -p print all GUIDS found", - " -g check for duplicate guids", - " -s check for duplicate signatures", - " -x print guid+defined symbol name", - " -b outfile write internal GUID+basename list to outfile", - " -u dirname exclude searching all subdirectories of a directory", - " -h -? print this help text", - " ", - " Example: GuidChk -g -u build -d fv -f make.inf -e .pkg", + int Index; + const char *Str[] = { + UTILITY_NAME" "UTILITY_VERSION" - Intel GUID Check Utility", + " Copyright (C), 2004 - 2008 Intel Corporation", + +#if ( defined(UTILITY_BUILD) && defined(UTILITY_VENDOR) ) + " Built from "UTILITY_BUILD", project of "UTILITY_VENDOR, +#endif "", + "Usage:", + " "UTILITY_NAME" [OPTION]...", + "Description:", + " Scan files for duplicate GUID or signature definitions.", + "Options:", + " -d dirname exclude searching of a directory", + " -f filename exclude searching of a file", + " -e extension exclude searching of files by extension", + " -p print all GUIDS found", + " -g check for duplicate guids", + " -s check for duplicate signatures", + " -x print guid+defined symbol name", + " -b outfile write internal GUID+basename list to outfile", + " -u dirname exclude searching all subdirectories of a directory", + " -h -? print this help text", + "Example Usage:", + " GuidChk -g -u build -d fv -f make.inf -e .pkg", NULL }; for (Index = 0; Str[Index] != NULL; Index++) { -- cgit v1.2.3