mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 15:15:01 +00:00
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
This commit is contained in:
parent
bce43ea96d
commit
b5b5211732
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156380
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue