From 12c1cd1b6066760b63af274865fa9803199cacad Mon Sep 17 00:00:00 2001 From: jmmv Date: Thu, 10 Feb 2005 10:18:03 +0000 Subject: Update to 1.3: show a more descriptive usage message, useful as a quick reference. Per tv@'s suggestion. --- pkgtools/pkg_alternatives/Makefile | 4 ++-- pkgtools/pkg_alternatives/files/pkg_alternatives.sh | 20 ++++++++++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) (limited to 'pkgtools') 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 @@ -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 <