vi: fixes to string search in colon commands, closes 10321
[oweals/busybox.git] / coreutils / fold.c
index 3fe668512468e6923d356da80ee5bfe48c2218ec..1e26dde0c52f7697e9a884a10f8fa73ee4fd000f 100644 (file)
@@ -1,20 +1,29 @@
 /* vi: set sw=4 ts=4: */
-/* 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.
-*/
+/*
+ * 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:     "\nOptions:"
 //usage:     "\n       -b      Count bytes rather than columns"
 //usage:     "\n       -s      Break at spaces"
 //usage:     "\n       -w      Use WIDTH columns instead of 80"