Commit c50ab80b authored by Natanael Copa's avatar Natanael Copa

abuild: minor bugfix: define $program

parent c9616e9d
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment