Deleted Added
full compact
main.c (7713) main.c (7986)
1#ifndef lint
1#ifndef lint
2static const char *rcsid = "$Id: main.c,v 1.8 1994/12/06 00:51:36 jkh Exp $";
2static const char *rcsid = "$Id: main.c,v 1.9 1995/04/09 15:04:58 jkh Exp $";
3#endif
4
5/*
6 * FreeBSD install - a package for the installation and maintainance
7 * of non-core utilities.
8 *
9 * Jordan K. Hubbard
10 * 18 July 1993
11 *
12 * This is the create module.
13 *
14 */
15
16#include "lib.h"
17#include "create.h"
18
3#endif
4
5/*
6 * FreeBSD install - a package for the installation and maintainance
7 * of non-core utilities.
8 *
9 * Jordan K. Hubbard
10 * 18 July 1993
11 *
12 * This is the create module.
13 *
14 */
15
16#include "lib.h"
17#include "create.h"
18
19static char Options[] = "YNhvf:p:P:c:d:i:k:r:t:X:D:m:";
19static char Options[] = "YNOhvf:p:P:c:d:i:k:r:t:X:D:m:";
20
21char *Prefix = NULL;
22char *Comment = NULL;
23char *Desc = NULL;
24char *Display = NULL;
25char *Install = NULL;
26char *DeInstall = NULL;
27char *Contents = NULL;
28char *Require = NULL;
29char *PlayPen = NULL;
30char *ExcludeFrom = NULL;
31char *Mtree = NULL;
32char *Pkgdeps = NULL;
33int Dereference = 0;
20
21char *Prefix = NULL;
22char *Comment = NULL;
23char *Desc = NULL;
24char *Display = NULL;
25char *Install = NULL;
26char *DeInstall = NULL;
27char *Contents = NULL;
28char *Require = NULL;
29char *PlayPen = NULL;
30char *ExcludeFrom = NULL;
31char *Mtree = NULL;
32char *Pkgdeps = NULL;
33int Dereference = 0;
34int PlistOnly = 0;
34
35int
36main(int argc, char **argv)
37{
38 int ch;
39 char **pkgs, **start;
40 char *prog_name = argv[0];
41

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

49 case 'N':
50 AutoAnswer = NO;
51 break;
52
53 case 'Y':
54 AutoAnswer = YES;
55 break;
56
35
36int
37main(int argc, char **argv)
38{
39 int ch;
40 char **pkgs, **start;
41 char *prog_name = argv[0];
42

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

50 case 'N':
51 AutoAnswer = NO;
52 break;
53
54 case 'Y':
55 AutoAnswer = YES;
56 break;
57
58 case 'O':
59 PlistOnly = YES;
60 break;
61
57 case 'p':
58 Prefix = optarg;
59 break;
60
61 case 'f':
62 Contents = optarg;
63 break;
64

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

161 fprintf(stderr, "-P pkgs set package dependency list to pkgs\n");
162 fprintf(stderr, "-p prefix install prefix will be arg\n");
163 fprintf(stderr, "-r script pre/post requirements script\n");
164 fprintf(stderr, "-t temp use temp as template for mktemp()\n");
165 fprintf(stderr, "-X file exclude files listed in file\n");
166 fprintf(stderr, "-v verbose\n");
167 fprintf(stderr, "-Y assume `yes' answer to all questions\n");
168 fprintf(stderr, "-N assume `no' answer to all questions\n");
62 case 'p':
63 Prefix = optarg;
64 break;
65
66 case 'f':
67 Contents = optarg;
68 break;
69

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

166 fprintf(stderr, "-P pkgs set package dependency list to pkgs\n");
167 fprintf(stderr, "-p prefix install prefix will be arg\n");
168 fprintf(stderr, "-r script pre/post requirements script\n");
169 fprintf(stderr, "-t temp use temp as template for mktemp()\n");
170 fprintf(stderr, "-X file exclude files listed in file\n");
171 fprintf(stderr, "-v verbose\n");
172 fprintf(stderr, "-Y assume `yes' answer to all questions\n");
173 fprintf(stderr, "-N assume `no' answer to all questions\n");
174 fprintf(stderr, "-O print a revised packing list and exit\n");
169 exit(1);
170}
175 exit(1);
176}