Deleted Added
full compact
main.c (67429) main.c (67454)
1/*
2 *
3 * FreeBSD install - a package for the installation and maintainance
4 * of non-core utilities.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 11 unchanged lines hidden (view full) ---

20 */
21
22#include <err.h>
23#include "lib.h"
24#include "info.h"
25
26#ifndef lint
27static const char rcsid[] =
1/*
2 *
3 * FreeBSD install - a package for the installation and maintainance
4 * of non-core utilities.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 11 unchanged lines hidden (view full) ---

20 */
21
22#include <err.h>
23#include "lib.h"
24#include "info.h"
25
26#ifndef lint
27static const char rcsid[] =
28 "$FreeBSD: head/usr.sbin/pkg_install/info/main.c 67429 2000-10-22 09:53:27Z jkh $";
28 "$FreeBSD: head/usr.sbin/pkg_install/info/main.c 67454 2000-10-23 07:01:31Z sobomax $";
29#endif
30
29#endif
30
31static char Options[] = "acdDe:fhiIkl:LmpqrRst:v";
31static char Options[] = "acdDe:fhiIkl:LmopqrRst:v";
32
33int Flags = 0;
34Boolean AllInstalled = FALSE;
35Boolean Quiet = FALSE;
36char *InfoPrefix = "";
37char PlayPen[FILENAME_MAX];
38char *CheckPkg = NULL;
39

--- 71 unchanged lines hidden (view full) ---

111 case 'm':
112 Flags |= SHOW_MTREE;
113 break;
114
115 case 's':
116 Flags |= SHOW_SIZE;
117 break;
118
32
33int Flags = 0;
34Boolean AllInstalled = FALSE;
35Boolean Quiet = FALSE;
36char *InfoPrefix = "";
37char PlayPen[FILENAME_MAX];
38char *CheckPkg = NULL;
39

--- 71 unchanged lines hidden (view full) ---

111 case 'm':
112 Flags |= SHOW_MTREE;
113 break;
114
115 case 's':
116 Flags |= SHOW_SIZE;
117 break;
118
119 case 'o':
120 Flags |= SHOW_ORIGIN;
121 break;
122
119 case 'l':
120 InfoPrefix = optarg;
121 break;
122
123 case 'q':
124 Quiet = TRUE;
125 break;
126

--- 43 unchanged lines hidden (view full) ---

170 *pkgs = NULL;
171 return pkg_perform(start);
172}
173
174static void
175usage()
176{
177 fprintf(stderr, "%s\n%s\n%s\n",
123 case 'l':
124 InfoPrefix = optarg;
125 break;
126
127 case 'q':
128 Quiet = TRUE;
129 break;
130

--- 43 unchanged lines hidden (view full) ---

174 *pkgs = NULL;
175 return pkg_perform(start);
176}
177
178static void
179usage()
180{
181 fprintf(stderr, "%s\n%s\n%s\n",
178 "usage: pkg_info [-cdDfikrRpLqImv] [-e package] [-l prefix]",
182 "usage: pkg_info [-cdDfikorRpLqImv] [-e package] [-l prefix]",
179 " [-t template] [pkg-name ...]",
180 " pkg_info -a [flags]");
181 exit(1);
182}
183 " [-t template] [pkg-name ...]",
184 " pkg_info -a [flags]");
185 exit(1);
186}