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

Contents of /portage-utils/template.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download) (as text)
Sat Sep 24 01:56:36 2005 UTC (8 years, 9 months ago) by vapier
Branch: MAIN
Changes since 1.1: +3 -22 lines
File MIME type: text/x-csrc
cleanup license header

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

  ViewVC Help
Powered by ViewVC 1.1.20