X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EdkCompatibilityPkg%2FSample%2FTools%2FSource%2FGuidChk%2FGuidChk.c;h=f1084a3cd921d479b6b4f6d652aee5f74775f14b;hb=3e99020dbf0a159e34b84e7ae9125f2e368d5390;hp=7b9aa041c5fa0834d1af90316289403b45bbad48;hpb=68bb5ce77e51cf35791e46f2202e36da97e5e6be;p=mirror_edk2.git 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++) {