/[gentoo-projects]/portage-utils/template.c
Gentoo

Contents of /portage-utils/template.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download) (as text)
Sat Jan 7 16:25:28 2006 UTC (8 years, 8 months ago) by solar
Branch: MAIN
Changes since 1.7: +10 -2 lines
File MIME type: text/x-csrc
- make some applets optional for embedded systems where one might not have a full PORTDIR=

1 vapier 1.1 /*
2 vapier 1.7 * Copyright 2005-2006 Gentoo Foundation
3 vapier 1.1 * Distributed under the terms of the GNU General Public License v2
4 solar 1.8 * $Header: /var/cvsroot/gentoo-projects/portage-utils/template.c,v 1.7 2006/01/05 03:35:43 vapier Exp $
5 vapier 1.1 *
6 vapier 1.7 * Copyright 2005-2006 Ned Ludd - <solar@gentoo.org>
7     * Copyright 2005-2006 Mike Frysinger - <vapier@gentoo.org>
8 vapier 1.1 */
9    
10 solar 1.8 #ifdef APPLET_qtemp
11    
12 vapier 1.1 #define QTEMP_FLAGS "" COMMON_FLAGS
13     static struct option const qtemp_long_opts[] = {
14     COMMON_LONG_OPTS
15     };
16     static const char *qtemp_opts_help[] = {
17     COMMON_OPTS_HELP
18     };
19 solar 1.3
20 solar 1.8 static const char qtemp_rcsid[] = "$Id: template.c,v 1.7 2006/01/05 03:35:43 vapier Exp $";
21 solar 1.6 #define qtemp_usage(ret) usage(ret, QTEMP_FLAGS, qtemp_long_opts, qtemp_opts_help, lookup_applet_idx("qtemp"))
22 vapier 1.1
23    
24     int qtemp_main(int argc, char **argv)
25     {
26     int i;
27    
28     DBG("argc=%d argv[0]=%s argv[1]=%s",
29     argc, argv[0], argc > 1 ? argv[1] : "NULL?");
30    
31     while ((i = GETOPT_LONG(QTEMP, qtemp, "")) != -1) {
32     switch (i) {
33     COMMON_GETOPTS_CASES(qtemp)
34     }
35     }
36    
37    
38    
39     return EXIT_SUCCESS;
40     }
41 solar 1.8
42     #else /* ! APPLET_qtemp */
43     int qtemp_main(int argc, char **argv) {
44     errf("%s", err_noapplet);
45     }
46     #endif /* APPLET_qtemp */

  ViewVC Help
Powered by ViewVC 1.1.20