]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Sample/Tools/Source/SetStamp/SetStamp.c
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / SetStamp / SetStamp.c
index 866c6a45234db60b8d55e539db29b476c1d2a2c9..677797381027c04a241e7369ae5e94ae229991de 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2004, 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
@@ -22,7 +22,8 @@ Abstract:
 #include <time.h>\r
 \r
 #define LINE_MAXLEN 80\r
-\r
+#define UTILITY_NAME    "SetStamp"\r
+#define UTILITY_VERSION "v1.0"\r
 void\r
 PrintUsage (\r
   void\r
@@ -38,10 +39,25 @@ Returns:
   None\r
 --*/\r
 {\r
-  //\r
-  // print usage of command\r
-  //\r
-  printf ("Usage: SetStamp <PE-File> <TIME-File>\n");\r
+  int         Index;\r
+  const char  *Str[] = {\r
+    UTILITY_NAME" "UTILITY_VERSION" - Intel Set Time Stamp 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" PEFILE TIMEFILE",\r
+    "Description:",\r
+    "  Set Date/Time Stamp of Portable Executable (PE) format file",\r
+    NULL\r
+  };\r
+  for (Index = 0; Str[Index] != NULL; Index++) {\r
+    fprintf (stdout, "%s\n", Str[Index]);\r
+  }\r
+  \r
 }\r
 \r
 int\r