From b5b52117326c516feb8a259bf5f54ef39d2cb950 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Tue, 7 Mar 2006 06:05:38 +0000 Subject: [PATCH] Change the output of --version to match GNU "gnits" standards. (I'm not using GPL, but I still think there are good ideas in the GNU projects. ;-) Among other things, this should make it easier for clients of bsdtar to recognize it automatically: bsdtar --version | grep bsdtar --- usr.bin/tar/bsdtar.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/usr.bin/tar/bsdtar.c b/usr.bin/tar/bsdtar.c index 31c6f532d7da..a63ee6fb593b 100644 --- a/usr.bin/tar/bsdtar.c +++ b/usr.bin/tar/bsdtar.c @@ -689,9 +689,7 @@ usage(struct bsdtar *bsdtar) static void version(void) { - printf("bsdtar %s, ", PACKAGE_VERSION); - printf("%s\n", archive_version()); - printf("Copyright (C) 2003-2005 Tim Kientzle\n"); + printf("bsdtar %s - %s\n", PACKAGE_VERSION, archive_version()); exit(1); } @@ -757,8 +755,7 @@ long_help(struct bsdtar *bsdtar) } else putchar(*p); } - fprintf(stdout, "\n%s %s\n", PACKAGE_NAME, PACKAGE_VERSION); - fprintf(stdout, "%s\n", archive_version()); + version(); } static int