Deleted Added
full compact
main.c (1364) main.c (1520)
1#ifndef lint
1#ifndef lint
2static const char *rcsid = "$Id: main.c,v 1.5 1994/04/05 14:05:38 jkh Exp $";
2static const char *rcsid = "$Id: main.c,v 1.6 1994/04/16 21:50:53 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 unchanged lines hidden (view full) ---

22char *Comment = NULL;
23char *Desc = NULL;
24char *Install = NULL;
25char *DeInstall = NULL;
26char *Contents = NULL;
27char *Require = NULL;
28char *PlayPen = NULL;
29char *ExcludeFrom = NULL;
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 unchanged lines hidden (view full) ---

22char *Comment = NULL;
23char *Desc = NULL;
24char *Install = NULL;
25char *DeInstall = NULL;
26char *Contents = NULL;
27char *Require = NULL;
28char *PlayPen = NULL;
29char *ExcludeFrom = NULL;
30int Dereference = 0;
30
31int
32main(int argc, char **argv)
33{
34 int ch;
35 char **pkgs, **start;
36 char *prog_name = argv[0];
37

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

82 PlayPen = optarg;
83 break;
84
85 case 'X':
86 ExcludeFrom = optarg;
87 break;
88
89 case 'h':
31
32int
33main(int argc, char **argv)
34{
35 int ch;
36 char **pkgs, **start;
37 char *prog_name = argv[0];
38

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

83 PlayPen = optarg;
84 break;
85
86 case 'X':
87 ExcludeFrom = optarg;
88 break;
89
90 case 'h':
91 Dereference = 1;
92 break;
93
90 case '?':
91 default:
92 usage(prog_name, NULL);
93 break;
94 }
95
96 argc -= optind;
97 argv += optind;

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

129 }
130 va_end(args);
131 fprintf(stderr, "Usage: %s [args] pkg\n\n", name);
132 fprintf(stderr, "Where args are one or more of:\n\n");
133
134 fprintf(stderr, "-c [-]file Get one-line comment from file (-or arg)\n");
135 fprintf(stderr, "-d [-]file Get description from file (-or arg)\n");
136 fprintf(stderr, "-f file get list of files from file (- for stdin)\n");
94 case '?':
95 default:
96 usage(prog_name, NULL);
97 break;
98 }
99
100 argc -= optind;
101 argv += optind;

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

133 }
134 va_end(args);
135 fprintf(stderr, "Usage: %s [args] pkg\n\n", name);
136 fprintf(stderr, "Where args are one or more of:\n\n");
137
138 fprintf(stderr, "-c [-]file Get one-line comment from file (-or arg)\n");
139 fprintf(stderr, "-d [-]file Get description from file (-or arg)\n");
140 fprintf(stderr, "-f file get list of files from file (- for stdin)\n");
141 fprintf(stderr, "-h follow symbolic links\n");
137 fprintf(stderr, "-i script install script\n");
138 fprintf(stderr, "-p arg install prefix will be arg\n");
139 fprintf(stderr, "-k script de-install script\n");
140 fprintf(stderr, "-r script pre/post requirements script\n");
141 fprintf(stderr, "-t temp use temp as template for mktemp()\n");
142 fprintf(stderr, "-X file exclude files listed in file\n");
143 fprintf(stderr, "-v verbose\n");
144 exit(1);
145}
142 fprintf(stderr, "-i script install script\n");
143 fprintf(stderr, "-p arg install prefix will be arg\n");
144 fprintf(stderr, "-k script de-install script\n");
145 fprintf(stderr, "-r script pre/post requirements script\n");
146 fprintf(stderr, "-t temp use temp as template for mktemp()\n");
147 fprintf(stderr, "-X file exclude files listed in file\n");
148 fprintf(stderr, "-v verbose\n");
149 exit(1);
150}