hush: if we did match "LINENO" or "OPTIND", stop further comparisons
[oweals/busybox.git] / coreutils / fold.c
index 4a6429ad7b69d1cf2ce07b9639f1411f00d77855..1e26dde0c52f7697e9a884a10f8fa73ee4fd000f 100644 (file)
@@ -1,14 +1,33 @@
 /* vi: set sw=4 ts=4: */
-/* fold -- wrap each input line to fit in specified width.
+/*
+ * fold -- wrap each input line to fit in specified width.
+ *
+ * Written by David MacKenzie, djm@gnu.ai.mit.edu.
+ * Copyright (C) 91, 1995-2002 Free Software Foundation, Inc.
+ *
+ * Modified for busybox based on coreutils v 5.0
+ * Copyright (C) 2003 Glenn McGrath
+ *
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
+ */
+//config:config FOLD
+//config:      bool "fold (4.6 kb)"
+//config:      default y
+//config:      help
+//config:      Wrap text to fit a specific width.
+
+//applet:IF_FOLD(APPLET_NOEXEC(fold, fold, BB_DIR_USR_BIN, BB_SUID_DROP, fold))
+
+//kbuild:lib-$(CONFIG_FOLD) += fold.o
+
+//usage:#define fold_trivial_usage
+//usage:       "[-bs] [-w WIDTH] [FILE]..."
+//usage:#define fold_full_usage "\n\n"
+//usage:       "Wrap input lines in each FILE (or stdin), writing to stdout\n"
+//usage:     "\n       -b      Count bytes rather than columns"
+//usage:     "\n       -s      Break at spaces"
+//usage:     "\n       -w      Use WIDTH columns instead of 80"
 
-   Written by David MacKenzie, djm@gnu.ai.mit.edu.
-   Copyright (C) 91, 1995-2002 Free Software Foundation, Inc.
-
-   Modified for busybox based on coreutils v 5.0
-   Copyright (C) 2003 Glenn McGrath
-
-   Licensed under GPLv2 or later, see file LICENSE in this source tree.
-*/
 #include "libbb.h"
 #include "unicode.h"