summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/abuild.in b/abuild.in
index fcfb23b..c7168ee 100755
--- a/abuild.in
+++ b/abuild.in
@@ -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"