diff options
author | kientzle <kientzle@FreeBSD.org> | 2006-03-07 06:05:38 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2006-03-07 06:05:38 +0000 |
commit | a9f98a4d3aaaa1f4a0a9ad2de8065221d059a11d (patch) | |
tree | 4a930735966138f0838a7798ee82d841b8b8c715 /usr.bin/tar | |
parent | adcc62544996b810d5600a0e1de6b7b1adb2d4d3 (diff) | |
download | FreeBSD-src-a9f98a4d3aaaa1f4a0a9ad2de8065221d059a11d.zip FreeBSD-src-a9f98a4d3aaaa1f4a0a9ad2de8065221d059a11d.tar.gz |
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
Diffstat (limited to 'usr.bin/tar')
-rw-r--r-- | usr.bin/tar/bsdtar.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/tar/bsdtar.c b/usr.bin/tar/bsdtar.c index 31c6f53..a63ee6f 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 |