busybox: add '--show SCRIPT' option to display scripts
authorRon Yorston <rmy@pobox.com>
Sun, 18 Nov 2018 18:12:26 +0000 (19:12 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 18 Nov 2018 18:19:29 +0000 (19:19 +0100)
commitd1b2ae2d04eae05d76ad3c1a07e9092c7d46c773
tree76e46c6c5e905b49cc8efcd5aa6ce0ce193a257a
parent3778898f97a64e7b42b53194af7f3b93cc9c07a3
busybox: add '--show SCRIPT' option to display scripts

Add an option to allow the content of embedded scripts to be
displayed.  This includes applet scripts, custom scripts and the
.profile script.

function                                             old     new   delta
busybox_main                                         624     701     +77
find_script_by_name                                    -      24     +24
scripted_main                                         41      35      -6
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 101/-6)             Total: 95 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Config.in
libbb/appletlib.c