Allow 'gzip -d' and 'bzip2 -d' without gunzip or bunzip2
[oweals/busybox.git] / coreutils / tac.c
index ab3e66ac20d539fa0243920fb69513a709025180..ca5617c83ffd20858375615ee4f384eef4ab4ebf 100644 (file)
@@ -1,20 +1,31 @@
 /* vi: set sw=4 ts=4: */
 /*
  * tac implementation for busybox
+ * tac - concatenate and print files in reverse
  *
  * Copyright (C) 2003  Yang Xiaopeng  <yxp at hanwang.com.cn>
  * Copyright (C) 2007  Natanael Copa  <natanael.copa@gmail.com>
  * Copyright (C) 2007  Tito Ragusa    <farmatito@tiscali.it>
  *
  * Licensed under GPLv2, see file LICENSE in this source tree.
- *
  */
-
-/* tac - concatenate and print files in reverse */
-
 /* Based on Yang Xiaopeng's (yxp at hanwang.com.cn) patch
  * http://www.uclibc.org/lists/busybox/2003-July/008813.html
  */
+//config:config TAC
+//config:      bool "tac"
+//config:      default y
+//config:      help
+//config:        tac is used to concatenate and print files in reverse.
+
+//applet:IF_TAC(APPLET_NOEXEC(tac, tac, BB_DIR_USR_BIN, BB_SUID_DROP, tac))
+
+//kbuild:lib-$(CONFIG_TAC) += tac.o
+
+//usage:#define tac_trivial_usage
+//usage:       "[FILE]..."
+//usage:#define tac_full_usage "\n\n"
+//usage:       "Concatenate FILEs and print them in reverse"
 
 #include "libbb.h"