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

Contents of /portage-utils/template.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (hide annotations) (download) (as text)
Thu May 24 14:47:18 2007 UTC (7 years, 2 months ago) by solar
Branch: MAIN
Changes since 1.12: +5 -5 lines
File MIME type: text/x-csrc
- update copyright headers

1 vapier 1.1 /*
2 solar 1.13 * Copyright 2005-2007 Gentoo Foundation
3 vapier 1.1 * Distributed under the terms of the GNU General Public License v2
4 solar 1.13 * $Header: /var/cvsroot/gentoo-projects/portage-utils/template.c,v 1.12 2007/05/23 03:22:31 solar Exp $
5 vapier 1.1 *
6 solar 1.13 * Copyright 2005-2007 Ned Ludd - <solar@gentoo.org>
7     * Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org>
8 vapier 1.1 */
9    
10 vapier 1.10 #ifdef APPLET_qtemp
11 solar 1.8
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.13 static const char qtemp_rcsid[] = "$Id: template.c,v 1.12 2007/05/23 03:22:31 solar 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     int qtemp_main(int argc, char **argv)
24     {
25     int i;
26    
27     DBG("argc=%d argv[0]=%s argv[1]=%s",
28     argc, argv[0], argc > 1 ? argv[1] : "NULL?");
29    
30     while ((i = GETOPT_LONG(QTEMP, qtemp, "")) != -1) {
31     switch (i) {
32     COMMON_GETOPTS_CASES(qtemp)
33     }
34     }
35    
36     return EXIT_SUCCESS;
37     }
38 solar 1.8
39 vapier 1.11 #else
40     DEFINE_APPLET_STUB(qtemp)
41 vapier 1.9 #endif

  ViewVC Help
Powered by ViewVC 1.1.20