diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-07 21:00:41 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-07 21:00:41 +0000 |
commit | 642a52d65e239c43f38ed6e98994191f24290490 (patch) | |
tree | 5312a61c6a79fecabb42332072329f8da1150bc8 /scripts/trylink | |
parent | d62fd84d4b309bc5fa6548288b82f21189d4f53f (diff) | |
download | busybox-642a52d65e239c43f38ed6e98994191f24290490.tar.gz |
make --help work for "individual applets" too.
Diffstat (limited to 'scripts/trylink')
-rwxr-xr-x | scripts/trylink | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/trylink b/scripts/trylink index e756461c8..d6538f12e 100755 --- a/scripts/trylink +++ b/scripts/trylink @@ -155,20 +155,17 @@ if test "$CONFIG_FEATURE_INDIVIDUAL" = y; then | grep -v "^#" \ | grep -v "^$" \ > applet.lst - while read name main cname; do - - test x"$cname" = "x[" && cname=test - test x"$cname" = "x[[" && cname=test + while read name main junk; do echo "\ -void bbox_prepare_main(void); +void bbox_prepare_main(char **argv); int $main(int argc, char **argv); const char *applet_name = \"$name\"; int main(int argc, char **argv) { - bbox_prepare_main(); + bbox_prepare_main(argv); return $main(argc, argv); } " >"$sharedlib_dir/applet.c" |