2006-08-04 21:05:33 +00:00
|
|
|
/* Minimal wrapper to build an individual busybox applet.
|
|
|
|
*
|
|
|
|
* Copyright 2005 Rob Landley <rob@landley.net
|
2006-09-17 16:28:10 +00:00
|
|
|
*
|
2010-08-16 18:14:46 +00:00
|
|
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
2006-08-04 21:05:33 +00:00
|
|
|
*/
|
|
|
|
|
2006-10-03 21:00:43 +00:00
|
|
|
const char *applet_name;
|
2006-08-04 21:05:33 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "usage.h"
|
|
|
|
|
2007-04-04 20:52:03 +00:00
|
|
|
int main(int argc, char **argv)
|
2006-08-04 21:05:33 +00:00
|
|
|
{
|
2007-03-24 12:11:17 +00:00
|
|
|
applet_name = argv[0];
|
2012-09-02 12:29:14 +00:00
|
|
|
return APPLET_main(argc, argv);
|
2006-08-04 21:05:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void bb_show_usage(void)
|
|
|
|
{
|
2008-07-02 11:14:59 +00:00
|
|
|
fputs(APPLET_full_usage "\n", stdout);
|
2008-05-19 09:29:47 +00:00
|
|
|
exit(EXIT_FAILURE);
|
2006-08-04 21:05:33 +00:00
|
|
|
}
|