Deleted Added
full compact
main.c (50479) main.c (67454)
1#ifndef lint
2static const char rcsid[] =
1#ifndef lint
2static const char rcsid[] =
3 "$FreeBSD: head/usr.sbin/pkg_install/create/main.c 50479 1999-08-28 01:35:59Z peter $";
3 "$FreeBSD: head/usr.sbin/pkg_install/create/main.c 67454 2000-10-23 07:01:31Z sobomax $";
4#endif
5
6/*
7 * FreeBSD install - a package for the installation and maintainance
8 * of non-core utilities.
9 *
10 * Jordan K. Hubbard
11 * 18 July 1993
12 *
13 * This is the create module.
14 *
15 */
16
17#include <err.h>
18#include "lib.h"
19#include "create.h"
20
4#endif
5
6/*
7 * FreeBSD install - a package for the installation and maintainance
8 * of non-core utilities.
9 *
10 * Jordan K. Hubbard
11 * 18 July 1993
12 *
13 * This is the create module.
14 *
15 */
16
17#include <err.h>
18#include "lib.h"
19#include "create.h"
20
21static char Options[] = "YNOhvf:p:P:c:d:i:I:k:K:r:t:X:D:m:s:";
21static char Options[] = "YNOhvf:p:P:c:d:i:I:k:K:r:t:X:D:m:s:o:";
22
23char *Prefix = NULL;
24char *Comment = NULL;
25char *Desc = NULL;
26char *SrcDir = NULL;
27char *Display = NULL;
28char *Install = NULL;
29char *PostInstall = NULL;
30char *DeInstall = NULL;
31char *PostDeInstall = NULL;
32char *Contents = NULL;
33char *Require = NULL;
34char *ExcludeFrom = NULL;
35char *Mtree = NULL;
36char *Pkgdeps = NULL;
22
23char *Prefix = NULL;
24char *Comment = NULL;
25char *Desc = NULL;
26char *SrcDir = NULL;
27char *Display = NULL;
28char *Install = NULL;
29char *PostInstall = NULL;
30char *DeInstall = NULL;
31char *PostDeInstall = NULL;
32char *Contents = NULL;
33char *Require = NULL;
34char *ExcludeFrom = NULL;
35char *Mtree = NULL;
36char *Pkgdeps = NULL;
37char *Origin = NULL;
37char PlayPen[FILENAME_MAX];
38int Dereference = 0;
39int PlistOnly = 0;
40
41static void usage __P((void));
42
43int
44main(int argc, char **argv)

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

124 case 'm':
125 Mtree = optarg;
126 break;
127
128 case 'P':
129 Pkgdeps = optarg;
130 break;
131
38char PlayPen[FILENAME_MAX];
39int Dereference = 0;
40int PlistOnly = 0;
41
42static void usage __P((void));
43
44int
45main(int argc, char **argv)

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

125 case 'm':
126 Mtree = optarg;
127 break;
128
129 case 'P':
130 Pkgdeps = optarg;
131 break;
132
133 case 'o':
134 Origin = optarg;
135 break;
136
132 case '?':
133 default:
134 usage();
135 break;
136 }
137
138 argc -= optind;
139 argv += optind;

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

160
161static void
162usage()
163{
164 fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n",
165"usage: pkg_create [-YNOhv] [-P pkgs] [-p prefix] [-f contents] [-i iscript]",
166" [-I piscript] [-k dscript] [-K pdscript] [-r rscript] ",
167" [-t template] [-X excludefile] [-D displayfile] ",
137 case '?':
138 default:
139 usage();
140 break;
141 }
142
143 argc -= optind;
144 argv += optind;

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

165
166static void
167usage()
168{
169 fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n",
170"usage: pkg_create [-YNOhv] [-P pkgs] [-p prefix] [-f contents] [-i iscript]",
171" [-I piscript] [-k dscript] [-K pdscript] [-r rscript] ",
172" [-t template] [-X excludefile] [-D displayfile] ",
168" [-m mtreefile] -c comment -d description -f packlist ",
169" pkg-name");
173" [-m mtreefile] [-o origin] -c comment -d description ",
174" -f packlist pkg-name");
170 exit(1);
171}
175 exit(1);
176}