diff options
author | jmmv <jmmv@pkgsrc.org> | 2005-02-10 10:18:03 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2005-02-10 10:18:03 +0000 |
commit | 773fe27e4770ff0c35a8d10412879d1e3bf92f29 (patch) | |
tree | 7dc390d963f71e544e84a101c5dd9eb96d80831f /pkgtools | |
parent | 165d86326f9a7d6cccb0cfec97b939898af00847 (diff) | |
download | pkgsrc-773fe27e4770ff0c35a8d10412879d1e3bf92f29.tar.gz |
Update to 1.3: show a more descriptive usage message, useful as a quick
reference. Per tv@'s suggestion.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_alternatives/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkg_alternatives/files/pkg_alternatives.sh | 20 |
2 files changed, 20 insertions, 4 deletions
diff --git a/pkgtools/pkg_alternatives/Makefile b/pkgtools/pkg_alternatives/Makefile index 15e903784ba..fda1e307ed7 100644 --- a/pkgtools/pkg_alternatives/Makefile +++ b/pkgtools/pkg_alternatives/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.3 2005/01/30 12:35:22 jmmv Exp $ +# $NetBSD: Makefile,v 1.4 2005/02/10 10:18:03 jmmv Exp $ # -DISTNAME= pkg_alternatives-1.2 +DISTNAME= pkg_alternatives-1.3 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkg_alternatives/files/pkg_alternatives.sh b/pkgtools/pkg_alternatives/files/pkg_alternatives.sh index 998bccf47fd..5665d4754d0 100644 --- a/pkgtools/pkg_alternatives/files/pkg_alternatives.sh +++ b/pkgtools/pkg_alternatives/files/pkg_alternatives.sh @@ -1,6 +1,6 @@ #!@SH@ # -# $NetBSD: pkg_alternatives.sh,v 1.4 2005/01/30 12:35:22 jmmv Exp $ +# $NetBSD: pkg_alternatives.sh,v 1.5 2005/02/10 10:18:03 jmmv Exp $ # # pkg_alternatives - Generic wrappers for programs with similar interfaces # Copyright (c) 2005 Julio M. Merino Vidal <jmmv@NetBSD.org> @@ -539,7 +539,23 @@ mkdir_p() { # Shows an usage message and exits the program with an error condition. # usage() { - echo "Usage: ${Prog_Name} [-gsw] [-p prefix] action [arg1 ... argN]" 1>&2 + cat 1>&2 <<EOF +Usage: ${Prog_Name} [options] action [arg1 ... argN] + +Available options: + -g Select group mode (default). + -p dir Set installation prefix. + -s Run in silent mode. + -w Select wrapper mode. + +Available actions in group mode: + auto destroy list manual rebuild register status unregister + +Available actions in wrapper mode: + auto manual register status unregister + +See pkg_alternatives(8) for more information. +EOF exit 1 } |