From fbf2338143952da2c63241e51379504a15aa3ea9 Mon Sep 17 00:00:00 2001 From: edk2 dev Date: Tue, 16 Feb 2016 10:47:30 +0800 Subject: BaseTools-Source: Update displayed version information Standardize the --version and --help text command-line options Updated tools to correctly display the Build number when using command-line option --version and exit successfully after termination. Ecc was also updated to print informational messages after the options are parsed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Larry Hauch Reviewed-by: Erik Bjorge --- BaseTools/Source/C/Split/Split.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'BaseTools/Source/C/Split/Split.c') diff --git a/BaseTools/Source/C/Split/Split.c b/BaseTools/Source/C/Split/Split.c index 44a09681d3..953f5df94f 100644 --- a/BaseTools/Source/C/Split/Split.c +++ b/BaseTools/Source/C/Split/Split.c @@ -2,7 +2,7 @@ Split a file into two pieces at the request offset. -Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 1999 - 2016, 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 @@ -34,8 +34,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // // Utility version information // -#define UTILITY_MAJOR_VERSION 0 -#define UTILITY_MINOR_VERSION 1 +#define UTILITY_MAJOR_VERSION 1 +#define UTILITY_MINOR_VERSION 0 void Version ( @@ -57,10 +57,7 @@ Returns: --*/ { - printf ("%s Version %d.%d %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION); - printf ("Copyright (c) 1999-2015 Intel Corporation. All rights reserved.\n"); - printf ("\n SplitFile creates two Binary files either in the same directory as the current working\n"); - printf (" directory or in the specified directory.\n"); + printf ("%s Version %d.%d Build %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION); } void @@ -83,6 +80,9 @@ Returns: --*/ { Version(); + printf ("Copyright (c) 1999-2016 Intel Corporation. All rights reserved.\n"); + printf ("\n SplitFile creates two Binary files either in the same directory as the current working\n"); + printf (" directory or in the specified directory.\n"); printf ("\nUsage: \n\ Split\n\ -f, --filename inputFile to split\n\ -- cgit v1.2.3