blob: 0721683525d540ed4185cf3a7cc0677a77fa2752 [file] [log] [blame]
Rob Landleycb376ee2006-08-04 21:05:33 +00001/* Minimal wrapper to build an individual busybox applet.
2 *
3 * Copyright 2005 Rob Landley <rob@landley.net
Denis Vlasenko9213a9e2006-09-17 16:28:10 +00004 *
Rob Landleye9a7a622006-09-22 02:52:41 +00005 * Licensed under GPL version 2, see file LICENSE in this tarball for details
Rob Landleycb376ee2006-08-04 21:05:33 +00006 */
7
Denis Vlasenko8f8f2682006-10-03 21:00:43 +00008const char *applet_name;
Rob Landleycb376ee2006-08-04 21:05:33 +00009
10#include <stdio.h>
11#include <stdlib.h>
Denis Vlasenkob79b87a2006-10-19 22:17:44 +000012//Ok to remove? #include "bb_config.h"
Rob Landleycb376ee2006-08-04 21:05:33 +000013#include "usage.h"
14
15int main(int argc, char *argv[])
16{
Denis Vlasenko8f8f2682006-10-03 21:00:43 +000017 applet_name=argv[0];
Rob Landleycb376ee2006-08-04 21:05:33 +000018
19 return APPLET_main(argc,argv);
20}
21
22void bb_show_usage(void)
23{
24 printf(APPLET_full_usage "\n");
25
26 exit(1);
27}