Rob Landley | cb376ee | 2006-08-04 21:05:33 +0000 | [diff] [blame] | 1 | /* Minimal wrapper to build an individual busybox applet. |
| 2 | * |
| 3 | * Copyright 2005 Rob Landley <rob@landley.net |
| 4 | * |
| 5 | * Licensed under GPLv2 or later, see file License in this tarball for details |
| 6 | */ |
| 7 | |
| 8 | const char *bb_applet_name; |
| 9 | |
| 10 | #include <stdio.h> |
| 11 | #include <stdlib.h> |
Rob Landley | affb7a6 | 2006-08-05 00:41:39 +0000 | [diff] [blame] | 12 | #include "bb_config.h" |
Rob Landley | cb376ee | 2006-08-04 21:05:33 +0000 | [diff] [blame] | 13 | #include "usage.h" |
| 14 | |
| 15 | int main(int argc, char *argv[]) |
| 16 | { |
| 17 | bb_applet_name=argv[0]; |
| 18 | |
| 19 | return APPLET_main(argc,argv); |
| 20 | } |
| 21 | |
| 22 | void bb_show_usage(void) |
| 23 | { |
| 24 | printf(APPLET_full_usage "\n"); |
| 25 | |
| 26 | exit(1); |
| 27 | } |