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 |
Denis Vlasenko | 9213a9e | 2006-09-17 16:28:10 +0000 | [diff] [blame] | 4 | * |
Rob Landley | e9a7a62 | 2006-09-22 02:52:41 +0000 | [diff] [blame] | 5 | * Licensed under GPL version 2, see file LICENSE in this tarball for details |
Rob Landley | cb376ee | 2006-08-04 21:05:33 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
Denis Vlasenko | 8f8f268 | 2006-10-03 21:00:43 +0000 | [diff] [blame] | 8 | const char *applet_name; |
Rob Landley | cb376ee | 2006-08-04 21:05:33 +0000 | [diff] [blame] | 9 | |
| 10 | #include <stdio.h> |
| 11 | #include <stdlib.h> |
Denis Vlasenko | b79b87a | 2006-10-19 22:17:44 +0000 | [diff] [blame] | 12 | //Ok to remove? #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 | { |
Denis Vlasenko | 8f8f268 | 2006-10-03 21:00:43 +0000 | [diff] [blame] | 17 | applet_name=argv[0]; |
Rob Landley | cb376ee | 2006-08-04 21:05:33 +0000 | [diff] [blame] | 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 | } |