diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2005-06-06 03:24:14 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2005-06-06 03:24:14 +0000 |
commit | ca97fe27e5b90bf702e331578b7e1614e8b3a0bb (patch) | |
tree | 4fd0b38337020561c62d2bf3117a2ec0d3785fca /usr.sbin/pkg_install/create/main.c | |
parent | 67ba65663f204171ccd3b04e18197941d0ad1cae (diff) | |
download | src-ca97fe27e5b90bf702e331578b7e1614e8b3a0bb.tar.gz src-ca97fe27e5b90bf702e331578b7e1614e8b3a0bb.zip |
Add -R modifier for the mode when pkg_create(8) creates package file
from the locally installed package. When this modifier is specified
pkg_create(8) will also create package files for all packages on
which that locally installed package depends.
MFC after: 5 days
Notes
Notes:
svn path=/head/; revision=147043
Diffstat (limited to 'usr.sbin/pkg_install/create/main.c')
-rw-r--r-- | usr.sbin/pkg_install/create/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/create/main.c b/usr.sbin/pkg_install/create/main.c index b0a94152e0e9..4869bfd5c49e 100644 --- a/usr.sbin/pkg_install/create/main.c +++ b/usr.sbin/pkg_install/create/main.c @@ -16,7 +16,7 @@ __FBSDID("$FreeBSD$"); #include "lib.h" #include "create.h" -static char Options[] = "YNOhjvyzf:p:P:C:c:d:i:I:k:K:r:t:X:D:m:s:S:o:b:"; +static char Options[] = "YNORhjvyzf:p:P:C:c:d:i:I:k:K:r:t:X:D:m:s:S:o:b:"; char *Prefix = NULL; char *Comment = NULL; @@ -39,6 +39,7 @@ char *InstalledPkg = NULL; char PlayPen[FILENAME_MAX]; int Dereference = FALSE; int PlistOnly = FALSE; +int Recursive = FALSE; enum zipper Zipper = GZIP; static void usage __P((void)); @@ -169,6 +170,10 @@ main(int argc, char **argv) } break; + case 'R': + Recursive = TRUE; + break; + case '?': default: usage(); @@ -211,6 +216,6 @@ usage() " [-D displayfile] [-m mtreefile] [-o origin] ", " [-s srcdir] [-S basedir] ", " -c comment -d description -f packlist pkg-filename", -" pkg_create [-YNhvyz] -b pkg-name [pkg-filename]"); +" pkg_create [-YNhvyzR] -b pkg-name [pkg-filename]"); exit(1); } |