tests: use a lowercase "usage:" string

Adjust test commands and test suites so that their
usage strings are consistent with Git.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
David Aguilar 2013-02-24 14:48:39 -08:00 committed by Junio C Hamano
parent 0b670abd97
commit b978403aed
5 changed files with 5 additions and 5 deletions

View File

@ -148,7 +148,7 @@ stop_httpd () {
convert_to_rev_db () { convert_to_rev_db () {
"$PERL_PATH" -w -- - "$@" <<\EOF "$PERL_PATH" -w -- - "$@" <<\EOF
use strict; use strict;
@ARGV == 2 or die "Usage: convert_to_rev_db <input> <output>"; @ARGV == 2 or die "usage: convert_to_rev_db <input> <output>";
open my $wr, '+>', $ARGV[1] or die "$!: couldn't open: $ARGV[1]"; open my $wr, '+>', $ARGV[1] or die "$!: couldn't open: $ARGV[1]";
open my $rd, '<', $ARGV[0] or die "$!: couldn't open: $ARGV[0]"; open my $rd, '<', $ARGV[0] or die "$!: couldn't open: $ARGV[0]";
my $size = (stat($rd))[7]; my $size = (stat($rd))[7];

View File

@ -14,7 +14,7 @@ xmkdir() {
R="$1" R="$1"
[ -n "$R" ] || die "Usage: prepare-chroot.sh <root>" [ -n "$R" ] || die "usage: prepare-chroot.sh <root>"
[ -x git ] || die "This script needs to be executed at git source code's top directory" [ -x git ] || die "This script needs to be executed at git source code's top directory"
[ -x /bin/busybox ] || die "You need busybox" [ -x /bin/busybox ] || die "You need busybox"

View File

@ -114,6 +114,6 @@ int main(int argc, const char *argv[])
return 0; return 0;
usage: usage:
fprintf(stderr, "Usage: %s %s\n", argv[0], usage_str); fprintf(stderr, "usage: %s %s\n", argv[0], usage_str);
return -1; return -1;
} }

View File

@ -23,7 +23,7 @@ int main(int argc, char *argv[])
unsigned long from_size, data_size, out_size; unsigned long from_size, data_size, out_size;
if (argc != 5 || (strcmp(argv[1], "-d") && strcmp(argv[1], "-p"))) { if (argc != 5 || (strcmp(argv[1], "-d") && strcmp(argv[1], "-p"))) {
fprintf(stderr, "Usage: %s\n", usage_str); fprintf(stderr, "usage: %s\n", usage_str);
return 1; return 1;
} }

View File

@ -12,7 +12,7 @@ int main(int argc, char *argv[])
unsigned char *c; unsigned char *c;
if (argc < 2 || argc > 3) { if (argc < 2 || argc > 3) {
fprintf(stderr, "Usage: %s <seed_string> [<size>]\n", argv[0]); fprintf(stderr, "usage: %s <seed_string> [<size>]\n", argv[0]);
return 1; return 1;
} }