- Actually show usage() instead of entering an infinite loop.

- improve usage
- bump version to 1.1
This commit is contained in:
tnn 2008-05-21 15:24:40 +00:00
parent 9a4d5e9b81
commit 14c8f53a73
2 changed files with 14 additions and 6 deletions

View file

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.1.1.1 2008/05/15 17:44:42 joerg Exp $
# $NetBSD: Makefile,v 1.2 2008/05/21 15:24:40 tnn Exp $
DISTNAME= pkg_leaves-1.0
DISTNAME= pkg_leaves-1.1
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty

View file

@ -32,10 +32,15 @@ skip_manual=yes
usage()
{
echo "$0 [-a] [-K pkg_dbdir]"
echo "Print all automatically installed leaf packages."
echo "If -a is specified, print all leaf packages."
exit 1
cat << EOF
usage: $(basename "$0") [-a] [-K pkg_dbdir]
Prints all automatically installed leaf packages.
-a Print all leaf packages, including manually installed ones.
-K <dir> Specify alternate package database (default: ${PKG_DBDIR})
EOF
exit 1
}
while [ $# -gt 0 ] ; do
@ -49,6 +54,9 @@ while [ $# -gt 0 ] ; do
shift
shift
;;
*)
usage
;;
esac
done