Deleted Added
full compact
main.c (113594) main.c (131277)
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 113594 2003-04-17 09:56:05Z kris $");
13__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/create/main.c 131277 2004-06-29 18:56:59Z eik $");
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[] = "YNOhjvyzf:p:P:C:c:d:i:I:k:K:r:t:X:D:m:s:o:b:";
19static char Options[] = "YNOhjvyzf:p:P:C:c:d:i:I:k:K:r:t:X:D:m:s:S:o:b:";
20
21char *Prefix = NULL;
22char *Comment = NULL;
23char *Desc = NULL;
24char *SrcDir = NULL;
20
21char *Prefix = NULL;
22char *Comment = NULL;
23char *Desc = NULL;
24char *SrcDir = NULL;
25char *BaseDir = NULL;
25char *Display = NULL;
26char *Install = NULL;
27char *PostInstall = NULL;
28char *DeInstall = NULL;
29char *PostDeInstall = NULL;
30char *Contents = NULL;
31char *Require = NULL;
32char *ExcludeFrom = NULL;

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

70 case 'p':
71 Prefix = optarg;
72 break;
73
74 case 's':
75 SrcDir = optarg;
76 break;
77
26char *Display = NULL;
27char *Install = NULL;
28char *PostInstall = NULL;
29char *DeInstall = NULL;
30char *PostDeInstall = NULL;
31char *Contents = NULL;
32char *Require = NULL;
33char *ExcludeFrom = NULL;

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

71 case 'p':
72 Prefix = optarg;
73 break;
74
75 case 's':
76 SrcDir = optarg;
77 break;
78
79 case 'S':
80 BaseDir = optarg;
81 break;
82
78 case 'f':
79 Contents = optarg;
80 break;
81
82 case 'C':
83 Conflicts = optarg;
84 break;
85

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

194 }
195 else
196 return 0;
197}
198
199static void
200usage()
201{
83 case 'f':
84 Contents = optarg;
85 break;
86
87 case 'C':
88 Conflicts = optarg;
89 break;
90

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

199 }
200 else
201 return 0;
202}
203
204static void
205usage()
206{
202 fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n",
203"usage: pkg_create [-YNOhvy] [-P pkgs] [-C conflicts] [-p prefix] [-f contents] ",
207 fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n",
208"usage: pkg_create [-YNOhvyz] [-P pkgs] [-C conflicts] [-p prefix] ",
204" [-i iscript] [-I piscript] [-k dscript] [-K pdscript] ",
205" [-r rscript] [-t template] [-X excludefile] ",
206" [-D displayfile] [-m mtreefile] [-o origin] ",
209" [-i iscript] [-I piscript] [-k dscript] [-K pdscript] ",
210" [-r rscript] [-t template] [-X excludefile] ",
211" [-D displayfile] [-m mtreefile] [-o origin] ",
212" [-s srcdir] [-S basedir] ",
207" -c comment -d description -f packlist pkg-filename",
213" -c comment -d description -f packlist pkg-filename",
208" pkg_create [-YNhvy] -b pkg-name [pkg-filename]");
214" pkg_create [-YNhvyz] -b pkg-name [pkg-filename]");
209 exit(1);
210}
215 exit(1);
216}