Deleted Added
full compact
main.c (93520) main.c (95161)
1/*
2 * FreeBSD install - a package for the installation and maintainance
3 * of non-core utilities.
4 *
5 * Jordan K. Hubbard
6 * 18 July 1993
7 *
8 * This is the create module.
9 *
10 */
11
12#include <sys/cdefs.h>
1/*
2 * FreeBSD install - a package for the installation and maintainance
3 * of non-core utilities.
4 *
5 * Jordan K. Hubbard
6 * 18 July 1993
7 *
8 * This is the create module.
9 *
10 */
11
12#include <sys/cdefs.h>
13__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/create/main.c 93520 2002-04-01 09:39:07Z obrien $");
13__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/create/main.c 95161 2002-04-20 21:20:58Z obrien $");
14
15#include <err.h>
16#include "lib.h"
17#include "create.h"
18
14
15#include <err.h>
16#include "lib.h"
17#include "create.h"
18
19static char Options[] = "YNOhvyf:p:P:c:d:i:I:k:K:r:t:X:D:m:s:o:b:";
19static char Options[] = "YNOhjvyzf:p:P:c:d:i:I:k:K:r:t:X:D:m:s:o:b:";
20
21char *Prefix = NULL;
22char *Comment = NULL;
23char *Desc = NULL;
24char *SrcDir = NULL;
25char *Display = NULL;
26char *Install = NULL;
27char *PostInstall = NULL;

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

32char *ExcludeFrom = NULL;
33char *Mtree = NULL;
34char *Pkgdeps = NULL;
35char *Origin = NULL;
36char *InstalledPkg = NULL;
37char PlayPen[FILENAME_MAX];
38int Dereference = FALSE;
39int PlistOnly = FALSE;
20
21char *Prefix = NULL;
22char *Comment = NULL;
23char *Desc = NULL;
24char *SrcDir = NULL;
25char *Display = NULL;
26char *Install = NULL;
27char *PostInstall = NULL;

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

32char *ExcludeFrom = NULL;
33char *Mtree = NULL;
34char *Pkgdeps = NULL;
35char *Origin = NULL;
36char *InstalledPkg = NULL;
37char PlayPen[FILENAME_MAX];
38int Dereference = FALSE;
39int PlistOnly = FALSE;
40int UseBzip2 = FALSE;
40enum zipper Zipper = GZIP;
41
42static void usage __P((void));
43
44int
45main(int argc, char **argv)
46{
47 int ch;
48 char **pkgs, **start, *tmp;

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

130 Pkgdeps = optarg;
131 break;
132
133 case 'o':
134 Origin = optarg;
135 break;
136
137 case 'y':
41
42static void usage __P((void));
43
44int
45main(int argc, char **argv)
46{
47 int ch;
48 char **pkgs, **start, *tmp;

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

130 Pkgdeps = optarg;
131 break;
132
133 case 'o':
134 Origin = optarg;
135 break;
136
137 case 'y':
138 UseBzip2 = TRUE;
138 case 'j':
139 Zipper = BZIP2;
139 break;
140
140 break;
141
142 case 'z':
143 Zipper = GZIP;
144 break;
145
141 case 'b':
142 InstalledPkg = optarg;
143 while ((tmp = strrchr(optarg, (int)'/')) != NULL) {
144 *tmp++ = '\0';
145 /*
146 * If character after the '/' is alphanumeric, then we've
147 * found the package name. Otherwise we've come across
148 * a trailing '/' and need to continue our quest.

--- 52 unchanged lines hidden ---
146 case 'b':
147 InstalledPkg = optarg;
148 while ((tmp = strrchr(optarg, (int)'/')) != NULL) {
149 *tmp++ = '\0';
150 /*
151 * If character after the '/' is alphanumeric, then we've
152 * found the package name. Otherwise we've come across
153 * a trailing '/' and need to continue our quest.

--- 52 unchanged lines hidden ---