Deleted Added
full compact
main.c (96067) main.c (103149)
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:

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

15 * Jordan K. Hubbard
16 * 18 July 1993
17 *
18 * This is the info module.
19 *
20 */
21
22#include <sys/cdefs.h>
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:

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

15 * Jordan K. Hubbard
16 * 18 July 1993
17 *
18 * This is the info module.
19 *
20 */
21
22#include <sys/cdefs.h>
23__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/info/main.c 96067 2002-05-05 13:44:32Z sobomax $");
23__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/info/main.c 103149 2002-09-09 19:43:30Z sobomax $");
24
25#include "lib.h"
26#include "info.h"
27#include <err.h>
28
24
25#include "lib.h"
26#include "info.h"
27#include <err.h>
28
29static char Options[] = "acdDe:fgGhiIkl:LmoO:pqrRst:vVW:x";
29static char Options[] = "acdDe:fgGhiIkl:LmoO:pPqrRst:vVW:x";
30
31int Flags = 0;
32match_t MatchType = MATCH_GLOB;
33Boolean Quiet = FALSE;
34char *InfoPrefix = (char *)(uintptr_t)"";
35char PlayPen[FILENAME_MAX];
36char *CheckPkg = NULL;
37char *LookUpOrigin = NULL;

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

172 err(2, NULL);
173
174 strlcpy(entp->file, optarg, PATH_MAX);
175 entp->skip = FALSE;
176 TAILQ_INSERT_TAIL(whead, entp, next);
177 break;
178 }
179
30
31int Flags = 0;
32match_t MatchType = MATCH_GLOB;
33Boolean Quiet = FALSE;
34char *InfoPrefix = (char *)(uintptr_t)"";
35char PlayPen[FILENAME_MAX];
36char *CheckPkg = NULL;
37char *LookUpOrigin = NULL;

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

172 err(2, NULL);
173
174 strlcpy(entp->file, optarg, PATH_MAX);
175 entp->skip = FALSE;
176 TAILQ_INSERT_TAIL(whead, entp, next);
177 break;
178 }
179
180 case 'P':
181 Flags = SHOW_PTREV;
182 break;
183
180 case 'h':
181 case '?':
182 default:
183 usage();
184 break;
185 }
186 }
187
188 argc -= optind;
189 argv += optind;
190
184 case 'h':
185 case '?':
186 default:
187 usage();
188 break;
189 }
190 }
191
192 argc -= optind;
193 argv += optind;
194
195 if (Flags & SHOW_PTREV) {
196 if (!Quiet)
197 printf("Package tools revision: ");
198 printf("%d\n", PKG_INSTALL_VERSION);
199 exit(0);
200 }
201
191 /* Set some reasonable defaults */
192 if (!Flags)
193 Flags = SHOW_COMMENT | SHOW_DESC | SHOW_REQBY;
194
195 /* Get all the remaining package names, if any */
196 while (*argv) {
197 /*
198 * Don't try to apply heuristics if arguments are regexs or if

--- 39 unchanged lines hidden ---
202 /* Set some reasonable defaults */
203 if (!Flags)
204 Flags = SHOW_COMMENT | SHOW_DESC | SHOW_REQBY;
205
206 /* Get all the remaining package names, if any */
207 while (*argv) {
208 /*
209 * Don't try to apply heuristics if arguments are regexs or if

--- 39 unchanged lines hidden ---