busybox/coreutils
Denys Vlasenko 17f8418ea7 Add conditional support for -v / --verbose
With FEATURE_VERBOSE off, practically no size change.
With it on:

function                                             old     new   delta
remove_file                                          493     556     +63
install_main                                         719     765     +46
bb_make_directory                                    383     419     +36
rmdir_main                                           162     191     +29
copy_file                                           1516    1544     +28
mv_main                                              502     525     +23
cmp_main                                             677     693     +16
bbconfig_config_bz2                                 5264    5279     +15
mkdir_main                                           158     168     +10
install_longopts                                      66      76     +10
rm_main                                              167     175      +8
nexpr                                                840     846      +6
scan_tree                                            275     280      +5
fsck_main                                           1807    1811      +4
ed_main                                             2541    2545      +4
expand_one_var                                      1574    1575      +1
swap_on_off_main                                     420     418      -2
parse_command                                       1443    1440      -3
redirect                                            1279    1274      -5
do_load                                              946     918     -28
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 16/4 up/down: 304/-38)          Total: 266 bytes

Based on the patch by Igor Živković.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2014-05-19 16:23:50 +02:00
..
libcoreutils *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
basename.c basename,dirname,freeramdisk,rx,raidautorun,runsv,chvt: skip "--" argument 2011-04-11 03:58:30 +02:00
cal.c Use unsigned printf/scanf conversion where more appropriate 2013-11-29 16:45:45 +01:00
cat.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
catv.c catv: suppress compiler warning 2014-02-03 03:27:53 +01:00
chgrp.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
chmod.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
chown.c chown: fix help text 2014-01-09 17:52:13 +01:00
chroot.c libbb: make xchroot do a chdir("/") after chroot 2012-03-08 00:28:24 +01:00
cksum.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
comm.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
Config.src Add conditional support for -v / --verbose 2014-05-19 16:23:50 +02:00
cp.c Add conditional support for -v / --verbose 2014-05-19 16:23:50 +02:00
cut.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
date.c date: extend help text to explain compat date format. Closes 4820 2012-03-01 08:36:07 +01:00
dd.c dd: code shrink 2013-08-20 12:49:28 +02:00
df.c whitespace fixes. no code changes 2013-01-15 13:58:01 +01:00
dirname.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
dos2unix.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
du.c du: document incompatibility with standard tool 2012-12-14 17:14:11 +01:00
echo.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
env.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
expand.c expand: use printable_string instead of hard-coding implementation 2013-12-16 03:38:24 +01:00
expr.c add INIT_G()'s. No code changes. 2011-09-21 01:59:15 +02:00
false.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
fold.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
fsync.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
head.c Commonalize typical [b,]k,m suffix struct 2013-07-13 23:49:45 +02:00
hostid.c hostid: do not output sign-extended host id. Closes 6056 2013-03-04 03:04:38 +01:00
id_test.sh id: coreutils compat by Tito + test script 2008-10-29 00:27:31 +00:00
id.c platform: use KERNEL_VERSION to simplify uClibc version checking 2013-03-12 11:13:22 -04:00
install.c Add conditional support for -v / --verbose 2014-05-19 16:23:50 +02:00
Kbuild.src head,tail: use common suffix struct. simplify help text. 2013-02-25 01:24:32 +01:00
length.c.disabled move help text from include/usage.src.h to debianutils/*.c e2fsprogs/*.c editors/*.c loginutils/*.c mailutils/*.c 2011-04-03 01:33:55 +02:00
ln.c ln: support -T and -v 2012-05-06 13:18:35 +02:00
logname.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
ls.c ls: make "ls -s DIR" show total too. Clases 4946 2014-02-27 15:40:26 +01:00
md5_sha1_sum.c foo*sum: Correct syntax error 2013-07-04 11:33:42 +02:00
mkdir.c Add conditional support for -v / --verbose 2014-05-19 16:23:50 +02:00
mkfifo.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
mknod.c whitespace cleanup. no code changes 2013-01-14 15:57:44 +01:00
mv.c Add conditional support for -v / --verbose 2014-05-19 16:23:50 +02:00
nice.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
nohup.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
od_bloaty.c Commonalize typical [b,]k,m suffix struct 2013-07-13 23:49:45 +02:00
od.c od: code shrink, fix "od --traditional FILE" 2011-05-21 17:43:06 +02:00
printenv.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
printf.c printf: fix this case: printf "%b" '\0057usr\0057bin\n' 2012-03-07 11:57:47 +01:00
pwd.c whitespace fixes 2011-10-28 14:07:44 +02:00
readlink.c readlink: note that our -f is really -e 2013-03-12 11:38:03 -04:00
realpath.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
rm.c Add conditional support for -v / --verbose 2014-05-19 16:23:50 +02:00
rmdir.c Add conditional support for -v / --verbose 2014-05-19 16:23:50 +02:00
seq.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
shuf.c shuf: trim help text 2014-03-07 14:41:53 +01:00
sleep.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
sort.c sort: check global flags on fallback sort 2014-01-19 09:10:14 +01:00
split.c Commonalize typical [b,]k,m suffix struct 2013-07-13 23:49:45 +02:00
stat.c libbb: introduce and use strftime_[YYYYMMDD]HHMMSS() 2013-03-29 12:30:33 +01:00
stty.c Refactor catv. Move visible() from stty to libbb. 2013-07-30 06:29:42 +02:00
sum.c Use unsigned printf/scanf conversion where more appropriate 2013-11-29 16:45:45 +01:00
sync.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
tac.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
tail.c tail: adjust help/usage texts 2014-01-10 16:26:15 +01:00
tee.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
test_ptr_hack.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
test.c whitespace cleanup. no code changes 2013-01-14 15:57:44 +01:00
touch.c touch: add conditional support for -h 2013-09-11 11:58:33 +02:00
tr.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
true.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
tty.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
uname.c uname: fix up usage documentation 2014-01-31 00:28:42 -05:00
uniq.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
usleep.c usleep: do not check for usleep error, it should never fail 2011-07-08 08:37:57 +02:00
uudecode.c uudecode: tweak help text 2012-03-05 14:23:26 +01:00
uuencode.c uuencode: tweak help text 2012-03-05 14:22:33 +01:00
wc.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
who.c who: fix typo in help text 2012-04-18 14:38:15 +02:00
whoami.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
yes.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00