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> | ||||
Rob Landley | cb376ee | 2006-08-04 21:05:33 +0000 | [diff] [blame] | 12 | #include "usage.h" |
13 | |||||
Bernhard Reutner-Fischer | febe3c4 | 2007-04-04 20:52:03 +0000 | [diff] [blame] | 14 | int main(int argc, char **argv) |
Rob Landley | cb376ee | 2006-08-04 21:05:33 +0000 | [diff] [blame] | 15 | { |
Denis Vlasenko | 9067f13 | 2007-03-24 12:11:17 +0000 | [diff] [blame] | 16 | applet_name = argv[0]; |
Rob Landley | cb376ee | 2006-08-04 21:05:33 +0000 | [diff] [blame] | 17 | |
18 | return APPLET_main(argc,argv); | ||||
19 | } | ||||
20 | |||||
21 | void bb_show_usage(void) | ||||
22 | { | ||||
23 | printf(APPLET_full_usage "\n"); | ||||
24 | |||||
Bernhard Reutner-Fischer | 636a1f8 | 2008-05-19 09:29:47 +0000 | [diff] [blame] | 25 | exit(EXIT_FAILURE); |
Rob Landley | cb376ee | 2006-08-04 21:05:33 +0000 | [diff] [blame] | 26 | } |