]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Sample/Tools/Source/SplitFile/splitfile.c
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / SplitFile / splitfile.c
index 860093ca4fc8f2b0528fd127cb21646bc4039744..c0df181f63a97cddba2ecca2255cc88de1207d68 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006 - 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
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -21,6 +21,9 @@ Abstract:
 #include "string.h"\r
 #include "stdlib.h"\r
 \r
+#define UTILITY_NAME    "SplitFile"\r
+#define UTILITY_VERSION "v1.0"\r
+\r
 void\r
 helpmsg (\r
   void\r
@@ -40,11 +43,24 @@ Returns:
 \r
 --*/\r
 {\r
-  printf (\r
-    "SplitFile Filename Offset\n""   Filename = Input file to split\n""   Offset = offset at which to split file\n"\r
-    "\n\n""SplitFile will break a file in two pieces at the requested offset\n"\r
-    "  outputting Filename1 and Filename2\n"\r
-    );\r
+  int         Index;\r
+  const char  *Str[] = {\r
+    UTILITY_NAME" "UTILITY_VERSION" - Intel Split File Utility",\r
+    "  Copyright (C), 2006 - 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" FILE OFFSET",\r
+    "Description:",\r
+    "  Break the FILE in two pieces FILE1 and FILE2 at the requested OFFSET.",\r
+    NULL\r
+  };\r
+  for (Index = 0; Str[Index] != NULL; Index++) {\r
+    fprintf (stdout, "%s\n", Str[Index]);\r
+  }\r
 }\r
 \r
 int\r