pkgtools

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

commit d748158df0823dca3d8039040c387a912226f5c5
parent 0489602f85ccd11820754f118b6f48a438b9921d
Author: sin <sin@2f30.org>
Date:   Wed, 18 Jun 2014 16:44:34 +0100

Rename -p to -r

Diffstat:
Minfopkg.c | 6+++---
Minstallpkg.c | 6+++---
Mremovepkg.c | 6+++---
3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/infopkg.c b/infopkg.c @@ -16,8 +16,8 @@ static void usage(void) { fprintf(stderr, VERSION " (c) 2014 morpheus engineers\n"); - fprintf(stderr, "usage: %s [-p prefix] [-o filename...]\n", argv0); - fprintf(stderr, " -p Set the installation prefix\n"); + fprintf(stderr, "usage: %s [-r path] [-o filename...]\n", argv0); + fprintf(stderr, " -r Set alternative installation root\n"); fprintf(stderr, " -o Look for the packages that own the given filename(s)\n"); exit(EXIT_FAILURE); } @@ -34,7 +34,7 @@ main(int argc, char *argv[]) case 'o': oflag = 1; break; - case 'p': + case 'r': prefix = ARGF(); break; default: diff --git a/installpkg.c b/installpkg.c @@ -11,10 +11,10 @@ static void usage(void) { fprintf(stderr, VERSION " (c) 2014 morpheus engineers\n"); - fprintf(stderr, "usage: %s [-v] [-f] [-p prefix] pkg...\n", argv0); + fprintf(stderr, "usage: %s [-v] [-f] [-r path] pkg...\n", argv0); fprintf(stderr, " -v Enable verbose output\n"); fprintf(stderr, " -f Override filesystem checks and force installation\n"); - fprintf(stderr, " -p Set the installation prefix\n"); + fprintf(stderr, " -r Set alternative installation root\n"); exit(EXIT_FAILURE); } @@ -34,7 +34,7 @@ main(int argc, char *argv[]) case 'f': fflag = 1; break; - case 'p': + case 'r': prefix = ARGF(); break; default: diff --git a/removepkg.c b/removepkg.c @@ -12,10 +12,10 @@ static void usage(void) { fprintf(stderr, VERSION " (c) 2014 morpheus engineers\n"); - fprintf(stderr, "usage: %s [-v] [-f] [-p prefix] pkg...\n", argv0); + fprintf(stderr, "usage: %s [-v] [-f] [-r path] pkg...\n", argv0); fprintf(stderr, " -v Enable verbose output\n"); fprintf(stderr, " -f Force the removal of empty directories and symlinks\n"); - fprintf(stderr, " -p Set the installation prefix\n"); + fprintf(stderr, " -r Set alternative installation root\n"); exit(EXIT_FAILURE); } @@ -35,7 +35,7 @@ main(int argc, char *argv[]) case 'f': fflag = 1; break; - case 'p': + case 'r': prefix = ARGF(); break; default: