From ffa4499c9f55e652e71acd0c4e5e9412ede37050 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 13 Apr 2008 08:20:00 +0000 Subject: man: new applet. ~600 bytes. --- include/applets.h | 1 + include/usage.h | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index 2e661aca0..2bd70f281 100644 --- a/include/applets.h +++ b/include/applets.h @@ -237,6 +237,7 @@ USE_LSATTR(APPLET(lsattr, _BB_DIR_BIN, _BB_SUID_NEVER)) USE_LSMOD(APPLET(lsmod, _BB_DIR_SBIN, _BB_SUID_NEVER)) USE_UNLZMA(APPLET_ODDNAME(lzmacat, unlzma, _BB_DIR_USR_BIN, _BB_SUID_NEVER, lzmacat)) USE_MAKEDEVS(APPLET(makedevs, _BB_DIR_SBIN, _BB_SUID_NEVER)) +USE_MAN(APPLET(man, _BB_DIR_SBIN, _BB_SUID_NEVER)) USE_MATCHPATHCON(APPLET(matchpathcon, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) USE_MD5SUM(APPLET_ODDNAME(md5sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_NEVER, md5sum)) USE_MDEV(APPLET(mdev, _BB_DIR_SBIN, _BB_SUID_NEVER)) diff --git a/include/usage.h b/include/usage.h index dbe403d13..d1847020b 100644 --- a/include/usage.h +++ b/include/usage.h @@ -2300,6 +2300,14 @@ "/dev/hda[0-15]\n" #endif +#define man_trivial_usage \ + "[OPTION]... [MANPAGE]..." +#define man_full_usage \ + "Format and display manual page\n" \ + "\nOptions:" \ + "\n -a Display all pages" \ + "\n -w Show page locations" \ + #define matchpathcon_trivial_usage \ "[-n] [-N] [-f file_contexts_file] [-p prefix] [-V]" #define matchpathcon_full_usage \ -- cgit v1.2.3