Deleted Added
full compact
main.c (131277) main.c (147043)
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 131277 2004-06-29 18:56:59Z eik $");
13__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/create/main.c 147043 2005-06-06 03:24:14Z sobomax $");
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:S:o:b:";
19static char Options[] = "YNORhjvyzf: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;
25char *BaseDir = NULL;
26char *Display = NULL;
27char *Install = NULL;

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

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

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

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

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

164 */
165 if (isalpha(*tmp)) {
166 InstalledPkg = tmp;
167 break;
168 }
169 }
170 break;
171
43enum zipper Zipper = GZIP;
44
45static void usage __P((void));
46
47int
48main(int argc, char **argv)
49{
50 int ch;

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

165 */
166 if (isalpha(*tmp)) {
167 InstalledPkg = tmp;
168 break;
169 }
170 }
171 break;
172
173 case 'R':
174 Recursive = TRUE;
175 break;
176
172 case '?':
173 default:
174 usage();
175 break;
176 }
177
178 argc -= optind;
179 argv += optind;

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

206{
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] ",
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] ",
213" -c comment -d description -f packlist pkg-filename",
177 case '?':
178 default:
179 usage();
180 break;
181 }
182
183 argc -= optind;
184 argv += optind;

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

211{
212 fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n",
213"usage: pkg_create [-YNOhvyz] [-P pkgs] [-C conflicts] [-p prefix] ",
214" [-i iscript] [-I piscript] [-k dscript] [-K pdscript] ",
215" [-r rscript] [-t template] [-X excludefile] ",
216" [-D displayfile] [-m mtreefile] [-o origin] ",
217" [-s srcdir] [-S basedir] ",
218" -c comment -d description -f packlist pkg-filename",
214" pkg_create [-YNhvyz] -b pkg-name [pkg-filename]");
219" pkg_create [-YNhvyzR] -b pkg-name [pkg-filename]");
215 exit(1);
216}
220 exit(1);
221}