main.c (30221) | main.c (41866) |
---|---|
1#ifndef lint 2static const char rcsid[] = | 1#ifndef lint 2static const char rcsid[] = |
3 "$Id: main.c,v 1.16 1997/06/06 12:19:11 jkh Exp $"; | 3 "$Id: main.c,v 1.17 1997/10/08 07:46:23 charnier Exp $"; |
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: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:"; |
22 23char *Prefix = NULL; 24char *Comment = NULL; 25char *Desc = NULL; 26char *SrcDir = NULL; 27char *Display = NULL; 28char *Install = NULL; | 22 23char *Prefix = NULL; 24char *Comment = NULL; 25char *Desc = NULL; 26char *SrcDir = NULL; 27char *Display = NULL; 28char *Install = NULL; |
29char *PostInstall = NULL; |
|
29char *DeInstall = NULL; | 30char *DeInstall = NULL; |
31char *PostDeInstall = NULL; |
|
30char *Contents = NULL; 31char *Require = NULL; 32char *ExcludeFrom = NULL; 33char *Mtree = NULL; 34char *Pkgdeps = NULL; 35char PlayPen[FILENAME_MAX]; 36int Dereference = 0; 37int PlistOnly = 0; --- 44 unchanged lines hidden (view full) --- 82 case 'd': 83 Desc = optarg; 84 break; 85 86 case 'i': 87 Install = optarg; 88 break; 89 | 32char *Contents = NULL; 33char *Require = NULL; 34char *ExcludeFrom = NULL; 35char *Mtree = NULL; 36char *Pkgdeps = NULL; 37char PlayPen[FILENAME_MAX]; 38int Dereference = 0; 39int PlistOnly = 0; --- 44 unchanged lines hidden (view full) --- 84 case 'd': 85 Desc = optarg; 86 break; 87 88 case 'i': 89 Install = optarg; 90 break; 91 |
92 case 'I': 93 PostInstall = optarg; 94 break; 95 |
|
90 case 'k': 91 DeInstall = optarg; 92 break; 93 | 96 case 'k': 97 DeInstall = optarg; 98 break; 99 |
100 case 'K': 101 PostDeInstall = optarg; 102 break; 103 |
|
94 case 'r': 95 Require = optarg; 96 break; 97 98 case 't': 99 strcpy(PlayPen, optarg); 100 break; 101 --- 44 unchanged lines hidden (view full) --- 146 } 147 else 148 return 0; 149} 150 151static void 152usage() 153{ | 104 case 'r': 105 Require = optarg; 106 break; 107 108 case 't': 109 strcpy(PlayPen, optarg); 110 break; 111 --- 44 unchanged lines hidden (view full) --- 156 } 157 else 158 return 0; 159} 160 161static void 162usage() 163{ |
154 fprintf(stderr, "%s\n%s\n%s\n%s\n", | 164 fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n", |
155"usage: pkg_create [-YNOhv] [-P pkgs] [-p prefix] [-f contents] [-i iscript]", | 165"usage: pkg_create [-YNOhv] [-P pkgs] [-p prefix] [-f contents] [-i iscript]", |
156" [-k dscript] [-r rscript] [-t template] [-X excludefile]", 157" [-D displayfile] [-m mtreefile] -c comment -d description", 158" -f packlist pkg-name"); | 166" [-I piscript] [-k dscript] [-K pdscript] [-r rscript] ", 167" [-t template] [-X excludefile] [-D displayfile] ", 168" [-m mtreefile] -c comment -d description -f packlist ", 169" pkg-name"); |
159 exit(1); 160} | 170 exit(1); 171} |