2006-08-05 02:35:33 +05:30
|
|
|
/* Minimal wrapper to build an individual busybox applet.
|
|
|
|
*
|
|
|
|
* Copyright 2005 Rob Landley <rob@landley.net
|
2006-09-17 21:58:10 +05:30
|
|
|
*
|
2006-09-22 08:22:41 +05:30
|
|
|
* Licensed under GPL version 2, see file LICENSE in this tarball for details
|
2006-08-05 02:35:33 +05:30
|
|
|
*/
|
|
|
|
|
2006-10-04 02:30:43 +05:30
|
|
|
const char *applet_name;
|
2006-08-05 02:35:33 +05:30
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "usage.h"
|
|
|
|
|
2007-04-05 02:22:03 +05:30
|
|
|
int main(int argc, char **argv)
|
2006-08-05 02:35:33 +05:30
|
|
|
{
|
2007-03-24 17:41:17 +05:30
|
|
|
applet_name = argv[0];
|
2006-08-05 02:35:33 +05:30
|
|
|
return APPLET_main(argc,argv);
|
|
|
|
}
|
|
|
|
|
|
|
|
void bb_show_usage(void)
|
|
|
|
{
|
2008-07-02 16:44:59 +05:30
|
|
|
fputs(APPLET_full_usage "\n", stdout);
|
2008-05-19 14:59:47 +05:30
|
|
|
exit(EXIT_FAILURE);
|
2006-08-05 02:35:33 +05:30
|
|
|
}
|