pkgtools

morpheus pkg tools
git clone git://git.2f30.org/pkgtools
Log | Files | Refs | README | LICENSE

commit 6ebe56fc96c0c32860b14aeda7a25e219891e1ea
parent 01dc894209e7c7a486fb28e134a148f1d0d0b0fa
Author: sin <sin@2f30.org>
Date:   Fri, 30 May 2014 14:27:38 +0100

Rename -E to -O

Diffstat:
Minfopkg.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/infopkg.c b/infopkg.c @@ -18,8 +18,8 @@ char *argv0; static void usage(void) { - fprintf(stderr, "usage: %s [-E filename] [-p prefix]\n", argv0); - fprintf(stderr, " -E Look for the package that contains the given filename(s)\n"); + fprintf(stderr, "usage: %s [-O filename] [-p prefix]\n", argv0); + fprintf(stderr, " -O Look for the package that owns the given filename(s)\n"); fprintf(stderr, " -p Set the installation prefix\n"); exit(1); } @@ -31,13 +31,13 @@ main(int argc, char *argv[]) struct dirent *dp; char *prefix = "/"; char path[PATH_MAX]; - int Eflag = 0; + int Oflag = 0; int i; int r; ARGBEGIN { - case 'E': - Eflag = 1; + case 'O': + Oflag = 1; break; case 'p': prefix = ARGF(); @@ -46,7 +46,7 @@ main(int argc, char *argv[]) usage(); } ARGEND; - if (Eflag == 0 || argc < 1) + if (Oflag == 0 || argc < 1) usage(); r = chdir(prefix);