aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-11-18 21:40:30 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-11-18 21:40:30 +0000
commit0b6539f7f9fd1f39e350f7394113ea6a9628f3da (patch)
treeca1c28b41423195759c83a76f232fbbb3e89a373
parent56f16b42c93af18fbb984e8d6384c03e5405e3ae (diff)
downloadbusybox-w32-0b6539f7f9fd1f39e350f7394113ea6a9628f3da.tar.gz
busybox-w32-0b6539f7f9fd1f39e350f7394113ea6a9628f3da.tar.bz2
busybox-w32-0b6539f7f9fd1f39e350f7394113ea6a9628f3da.zip
Update md5sum, sha1sum options, patch by Steven Scholz
-rw-r--r--include/usage.h30
1 files changed, 20 insertions, 10 deletions
diff --git a/include/usage.h b/include/usage.h
index 268c23cac..80cb274aa 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1552,20 +1552,23 @@
1552 "$ makedevs /dev/hda b 3 0 0 8 s\n" \ 1552 "$ makedevs /dev/hda b 3 0 0 8 s\n" \
1553 "[creates hda,hda1-hda8]\n" 1553 "[creates hda,hda1-hda8]\n"
1554 1554
1555#ifdef CONFIG_FEATURE_MD5_SHA1_SUM_CHECK
1556#define USAGE_MD5_SHA1_SUM_CHECK(a) a
1557#else
1558#define USAGE_MD5_SHA1_SUM_CHECK(a)
1559#endif
1560
1555#define md5sum_trivial_usage \ 1561#define md5sum_trivial_usage \
1556 "[OPTION] [FILE]...\n" \ 1562 "[OPTION] [FILEs...]" \
1557 "or: md5sum [OPTION] -c [FILE]" 1563 USAGE_MD5_SHA1_SUM_CHECK("\n or: md5sum [OPTION] -c [FILE]")
1558#define md5sum_full_usage \ 1564#define md5sum_full_usage \
1559 "Print or check MD5 checksums.\n\n" \ 1565 "Print" USAGE_MD5_SHA1_SUM_CHECK(" or check") " MD5 checksums.\n\n" \
1560 "Options:\n" \ 1566 "Options:\n" \
1561 "With no FILE, or when FILE is -, read standard input.\n\n" \ 1567 "With no FILE, or when FILE is -, read standard input.\n\n" \
1562 "\t-b\tread files in binary mode\n" \ 1568 USAGE_MD5_SHA1_SUM_CHECK("\t-c\tcheck MD5 sums against given list\n") \
1563 "\t-c\tcheck MD5 sums against given list\n" \
1564 "\t-t\tread files in text mode (default)\n" \
1565 "\t-g\tread a string\n" \
1566 "\nThe following two options are useful only when verifying checksums:\n" \ 1569 "\nThe following two options are useful only when verifying checksums:\n" \
1567 "\t-s\tdon't output anything, status code shows success\n" \ 1570 "\t-s\tdon't output anything, status code shows success\n" \
1568 "\t-w\twarn about improperly formated MD5 checksum lines" 1571 USAGE_MD5_SHA1_SUM_CHECK("\t-w\twarn about improperly formated MD5 checksum lines")
1569#define md5sum_example_usage \ 1572#define md5sum_example_usage \
1570 "$ md5sum < busybox\n" \ 1573 "$ md5sum < busybox\n" \
1571 "6fd11e98b98a58f64ff3398d7b324003\n" \ 1574 "6fd11e98b98a58f64ff3398d7b324003\n" \
@@ -2106,9 +2109,16 @@
2106 "Shows listing of the last users that logged into the system" 2109 "Shows listing of the last users that logged into the system"
2107 2110
2108#define sha1sum_trivial_usage \ 2111#define sha1sum_trivial_usage \
2109 "[OPTION] [FILE]" 2112 "[OPTION] [FILEs...]" \
2113 USAGE_MD5_SHA1_SUM_CHECK("\n or: sha1sum [OPTION] -c [FILE]")
2110#define sha1sum_full_usage \ 2114#define sha1sum_full_usage \
2111 "[OPTION] [FILE]" 2115 "Print" USAGE_MD5_SHA1_SUM_CHECK(" or check") " SHA1 checksums.\n\n" \
2116 "Options:\n" \
2117 "With no FILE, or when FILE is -, read standard input.\n\n" \
2118 USAGE_MD5_SHA1_SUM_CHECK("\t-c\tcheck SHA1 sums against given list\n") \
2119 USAGE_MD5_SHA1_SUM_CHECK("\nThe following two options are useful only when verifying checksums:\n") \
2120 "\t-s\tdon't output anything, status code shows success\n" \
2121 USAGE_MD5_SHA1_SUM_CHECK("\t-w\twarn about improperly formated SHA1 checksum lines")
2112 2122
2113#ifdef CONFIG_FEATURE_FANCY_SLEEP 2123#ifdef CONFIG_FEATURE_FANCY_SLEEP
2114 #define USAGE_FANCY_SLEEP(a) a 2124 #define USAGE_FANCY_SLEEP(a) a