diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-10-24 20:11:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-10-24 20:11:40 +0000 |
commit | c50ab80bfaf00fbc974e3847b613d0ce2b6e1549 (patch) | |
tree | ad21b78cf19f31b13b0b2e25412e5304e8a47553 | |
parent | c9616e9d9e89ca505a45a4ab015513536391d5e1 (diff) | |
download | abuild-c50ab80bfaf00fbc974e3847b613d0ce2b6e1549.tar.gz abuild-c50ab80bfaf00fbc974e3847b613d0ce2b6e1549.tar.bz2 abuild-c50ab80bfaf00fbc974e3847b613d0ce2b6e1549.tar.xz abuild-c50ab80bfaf00fbc974e3847b613d0ce2b6e1549.zip |
abuild: minor bugfix: define $program
-rwxr-xr-x | abuild.in | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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" |