]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/GuidChk.c
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / GuidChk / GuidChk.c
index 7b9aa041c5fa0834d1af90316289403b45bbad48..f1084a3cd921d479b6b4f6d652aee5f74775f14b 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -38,6 +38,9 @@ Abstract:
 #define MAX_PATH  1024\r
 #endif\r
 \r
+#define UTILITY_NAME    "GuidChk"\r
+#define UTILITY_VERSION "v1.0"\r
+\r
 typedef struct {\r
   INT8  *Extension;\r
   INT8  ExtensionCode;\r
@@ -593,25 +596,32 @@ Usage (
   VOID\r
   )\r
 {\r
-  int   Index;\r
-  char  *Str[] = {\r
-    "GuidChk - scan files for duplicate GUID or signature definitions",\r
-    "",\r
-    "Usage:  GuidChk {options}\n",\r
-    "  Options: ",\r
-    "    -d dirname     exclude searching of a directory",\r
-    "    -f filename    exclude searching of a file",\r
-    "    -e extension   exclude searching of files by extension",\r
-    "    -p             print all GUIDS found",\r
-    "    -g             check for duplicate guids",\r
-    "    -s             check for duplicate signatures",\r
-    "    -x             print guid+defined symbol name",\r
-    "    -b outfile     write internal GUID+basename list to outfile",\r
-    "    -u dirname     exclude searching all subdirectories of a directory",\r
-    "    -h -?          print this help text",\r
-    " ",\r
-    "   Example: GuidChk -g -u build -d fv -f make.inf -e .pkg",\r
+  int         Index;\r
+  const char  *Str[] = {\r
+    UTILITY_NAME" "UTILITY_VERSION" - Intel GUID Check Utility",\r
+    "  Copyright (C), 2004 - 2008 Intel Corporation",\r
+    \r
+#if ( defined(UTILITY_BUILD) && defined(UTILITY_VENDOR) )\r
+    "  Built from "UTILITY_BUILD", project of "UTILITY_VENDOR,\r
+#endif\r
     "",\r
+    "Usage:",\r
+    "  "UTILITY_NAME" [OPTION]...",\r
+    "Description:",\r
+    "  Scan files for duplicate GUID or signature definitions.",\r
+    "Options:",\r
+    "  -d dirname     exclude searching of a directory",\r
+    "  -f filename    exclude searching of a file",\r
+    "  -e extension   exclude searching of files by extension",\r
+    "  -p             print all GUIDS found",\r
+    "  -g             check for duplicate guids",\r
+    "  -s             check for duplicate signatures",\r
+    "  -x             print guid+defined symbol name",\r
+    "  -b outfile     write internal GUID+basename list to outfile",\r
+    "  -u dirname     exclude searching all subdirectories of a directory",\r
+    "  -h -?          print this help text",\r
+    "Example Usage:",\r
+    "  GuidChk -g -u build -d fv -f make.inf -e .pkg",\r
     NULL\r
   };\r
   for (Index = 0; Str[Index] != NULL; Index++) {\r