Update md5sum, sha1sum options, patch by Steven Scholz

This commit is contained in:
Glenn L McGrath 2003-11-18 21:40:30 +00:00
parent 56f16b42c9
commit 0b6539f7f9

View File

@ -1552,20 +1552,23 @@
"$ makedevs /dev/hda b 3 0 0 8 s\n" \ "$ makedevs /dev/hda b 3 0 0 8 s\n" \
"[creates hda,hda1-hda8]\n" "[creates hda,hda1-hda8]\n"
#ifdef CONFIG_FEATURE_MD5_SHA1_SUM_CHECK
#define USAGE_MD5_SHA1_SUM_CHECK(a) a
#else
#define USAGE_MD5_SHA1_SUM_CHECK(a)
#endif
#define md5sum_trivial_usage \ #define md5sum_trivial_usage \
"[OPTION] [FILE]...\n" \ "[OPTION] [FILEs...]" \
"or: md5sum [OPTION] -c [FILE]" USAGE_MD5_SHA1_SUM_CHECK("\n or: md5sum [OPTION] -c [FILE]")
#define md5sum_full_usage \ #define md5sum_full_usage \
"Print or check MD5 checksums.\n\n" \ "Print" USAGE_MD5_SHA1_SUM_CHECK(" or check") " MD5 checksums.\n\n" \
"Options:\n" \ "Options:\n" \
"With no FILE, or when FILE is -, read standard input.\n\n" \ "With no FILE, or when FILE is -, read standard input.\n\n" \
"\t-b\tread files in binary mode\n" \ USAGE_MD5_SHA1_SUM_CHECK("\t-c\tcheck MD5 sums against given list\n") \
"\t-c\tcheck MD5 sums against given list\n" \
"\t-t\tread files in text mode (default)\n" \
"\t-g\tread a string\n" \
"\nThe following two options are useful only when verifying checksums:\n" \ "\nThe following two options are useful only when verifying checksums:\n" \
"\t-s\tdon't output anything, status code shows success\n" \ "\t-s\tdon't output anything, status code shows success\n" \
"\t-w\twarn about improperly formated MD5 checksum lines" USAGE_MD5_SHA1_SUM_CHECK("\t-w\twarn about improperly formated MD5 checksum lines")
#define md5sum_example_usage \ #define md5sum_example_usage \
"$ md5sum < busybox\n" \ "$ md5sum < busybox\n" \
"6fd11e98b98a58f64ff3398d7b324003\n" \ "6fd11e98b98a58f64ff3398d7b324003\n" \
@ -2106,9 +2109,16 @@
"Shows listing of the last users that logged into the system" "Shows listing of the last users that logged into the system"
#define sha1sum_trivial_usage \ #define sha1sum_trivial_usage \
"[OPTION] [FILE]" "[OPTION] [FILEs...]" \
USAGE_MD5_SHA1_SUM_CHECK("\n or: sha1sum [OPTION] -c [FILE]")
#define sha1sum_full_usage \ #define sha1sum_full_usage \
"[OPTION] [FILE]" "Print" USAGE_MD5_SHA1_SUM_CHECK(" or check") " SHA1 checksums.\n\n" \
"Options:\n" \
"With no FILE, or when FILE is -, read standard input.\n\n" \
USAGE_MD5_SHA1_SUM_CHECK("\t-c\tcheck SHA1 sums against given list\n") \
USAGE_MD5_SHA1_SUM_CHECK("\nThe following two options are useful only when verifying checksums:\n") \
"\t-s\tdon't output anything, status code shows success\n" \
USAGE_MD5_SHA1_SUM_CHECK("\t-w\twarn about improperly formated SHA1 checksum lines")
#ifdef CONFIG_FEATURE_FANCY_SLEEP #ifdef CONFIG_FEATURE_FANCY_SLEEP
#define USAGE_FANCY_SLEEP(a) a #define USAGE_FANCY_SLEEP(a) a