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 | * |
Denys Vlasenko | 0ef64bd | 2010-08-16 20:14:46 +0200 | [diff] [blame] | 5 | * Licensed under GPLv2, see file LICENSE in this source tree. |
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 | return APPLET_main(argc,argv); |
18 | } | ||||
19 | |||||
20 | void bb_show_usage(void) | ||||
21 | { | ||||
Denis Vlasenko | e0a7fc5 | 2008-07-02 11:14:59 +0000 | [diff] [blame] | 22 | fputs(APPLET_full_usage "\n", stdout); |
Bernhard Reutner-Fischer | 636a1f8 | 2008-05-19 09:29:47 +0000 | [diff] [blame] | 23 | exit(EXIT_FAILURE); |
Rob Landley | cb376ee | 2006-08-04 21:05:33 +0000 | [diff] [blame] | 24 | } |