]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Sample/Tools/Source/GenTEImage/GenTEImage.c
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / GenTEImage / GenTEImage.c
index f9988257f107339708936b5bb13ab22b08697a26..178e9322aaa2c4b14c7daa3ef5004e1948656936 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 1999 - 2007, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 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
@@ -33,7 +33,7 @@ Abstract:
 // Version of this utility\r
 //\r
 #define UTILITY_NAME    "GenTEImage"\r
-#define UTILITY_VERSION "v0.11"\r
+#define UTILITY_VERSION "v1.0"\r
 \r
 //\r
 // Define the max length of a filename\r
@@ -767,23 +767,28 @@ Returns:
 \r
 --*/\r
 {\r
-  int               Index;\r
-  static const char *Msg[] = {\r
-    UTILITY_NAME " version "UTILITY_VERSION " - TE image utility",\r
-    "  Generate a TE image from an EFI PE32 image",\r
-    "  Usage: "UTILITY_NAME " {-v} {-dump} {-h|-?} {-o OutFileName} InFileName",\r
-    "                [-e|-b] [FileName(s)]",\r
-    "    where:",\r
-    "      -v             - for verbose output",\r
-    "      -dump          - to dump the input file to a text file",\r
-    "      -h -?          - for this help information",\r
-    "      -o OutFileName - to write output to OutFileName rather than InFileName"DEFAULT_OUTPUT_EXTENSION,\r
-    "      InFileName     - name of the input PE32 file",\r
+  int         Index;\r
+  const char  *Str[] = {\r
+    UTILITY_NAME" "UTILITY_VERSION" - Intel Generate TE Image Utility",\r
+    "  Copyright (C), 1999 - 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]... PE32IMAGE",\r
+    "Description:",\r
+    "  Generate a TE image from an EFI PE32 image.",\r
+    "Options:",\r
+    "  -v             - for verbose output",\r
+    "  -dump          - to dump the input file to a text file",\r
+    "  -h -?          - for this help information",\r
+    "  -o OutFileName - to write output to OutFileName rather than PE32IMAGE"DEFAULT_OUTPUT_EXTENSION,\r
     NULL\r
   };\r
-  for (Index = 0; Msg[Index] != NULL; Index++) {\r
-    fprintf (stdout, "%s\n", Msg[Index]);\r
+  for (Index = 0; Str[Index] != NULL; Index++) {\r
+    fprintf (stdout, "%s\n", Str[Index]);\r
   }\r
 }\r
 \r