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:
Tim Kientzle 2006-03-07 06:05:38 +00:00
parent bce43ea96d
commit b5b5211732
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156380

View file

@ -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