From 642a52d65e239c43f38ed6e98994191f24290490 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 7 Oct 2007 21:00:41 +0000 Subject: make --help work for "individual applets" too. --- scripts/trylink | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'scripts') 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" -- cgit v1.2.3