abuild: minor bugfix: define $program

This commit is contained in:
Natanael Copa 2009-10-24 20:11:40 +00:00
parent c9616e9d9e
commit c50ab80bfa
1 changed files with 4 additions and 3 deletions

View File

@ -13,6 +13,7 @@ sysconfdir=@sysconfdir@
apkcache=@apkcache@
datadir=@datadir@
program=${0##*/}
startdir="$PWD"
srcdir=${srcdir:-"$startdir/src"}
pkgbasedir=${pkgbasedir:-"$startdir/pkg"}
@ -953,10 +954,10 @@ all() {
}
usage() {
echo "$(basename $0) $abuild_ver"
echo "usage: ${0##*/} [options] [-i PKG] [-P REPODEST] [-p PKGDEST]"
echo "$program $abuild_ver"
echo "usage: $program [options] [-i PKG] [-P REPODEST] [-p PKGDEST]"
echo " [-s SRCDEST] [cmd] ..."
echo " ${0##*/} [-c] -n PKGNAME[-PKGVER]"
echo " $program [-c] -n PKGNAME[-PKGVER]"
echo "Options:"
echo " -d Disable dependency checking"
echo " -f Force specified cmd, even if they are already done"