X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=coreutils%2Ffold.c;h=1e26dde0c52f7697e9a884a10f8fa73ee4fd000f;hb=00bd76728d44901a260f2dcdbeed52b3c85d6b6b;hp=4a6429ad7b69d1cf2ce07b9639f1411f00d77855;hpb=2d1a78b88f6c986cbe147fc6f99091fd61f3bdd9;p=oweals%2Fbusybox.git diff --git a/coreutils/fold.c b/coreutils/fold.c index 4a6429ad7..1e26dde0c 100644 --- a/coreutils/fold.c +++ b/coreutils/fold.c @@ -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"