aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-10-07 21:00:41 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-10-07 21:00:41 +0000
commit642a52d65e239c43f38ed6e98994191f24290490 (patch)
tree5312a61c6a79fecabb42332072329f8da1150bc8 /scripts
parentd62fd84d4b309bc5fa6548288b82f21189d4f53f (diff)
downloadbusybox-642a52d65e239c43f38ed6e98994191f24290490.tar.gz
busybox-642a52d65e239c43f38ed6e98994191f24290490.tar.bz2
make --help work for "individual applets" too.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/trylink9
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"