summaryrefslogtreecommitdiff
path: root/abump.in
diff options
context:
space:
mode:
authorDubiousjim <dubiousjim@gmail.com>2013-07-05 00:21:37 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-09 07:12:56 +0000
commitb2d6b47be1ae42ff6271cfa31283a518ea5949ef (patch)
tree1b7de05e4c09f8dd678f31cff96e31ed51960467 /abump.in
parentf15c630cb888dad70809efc12644a4570372320b (diff)
downloadabuild-b2d6b47be1ae42ff6271cfa31283a518ea5949ef.tar.gz
abuild-b2d6b47be1ae42ff6271cfa31283a518ea5949ef.tar.bz2
abuild-b2d6b47be1ae42ff6271cfa31283a518ea5949ef.tar.xz
abuild-b2d6b47be1ae42ff6271cfa31283a518ea5949ef.zip
various: s/echo/msg/, s/echo/error/, tweak error messages
Diffstat (limited to 'abump.in')
-rwxr-xr-xabump.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/abump.in b/abump.in
index a344780..2ae34fc 100755
--- a/abump.in
+++ b/abump.in
@@ -35,11 +35,11 @@ do_bump() {
# verify APKBUILD
(
. "$a" || exit 1
- [ "$pkgname" = "$name" ] || die "$name: APKBUILD has different \$pkgname"
- type package | grep -q function || die "$name: missing package()"
+ [ "$pkgname" = "$name" ] || die "APKBUILD has different \$pkgname for $name"
+ type package | grep -q function || die "missing package() for $name"
case $(apk version --test "$pkgver" "$ver") in
- '=') die "$pkgname: already at version $pkgver";;
- '>') die "$pkgname: already at newer version $pkgver";;
+ '=') die "$pkgname is already at version $pkgver";;
+ '>') die "$pkgname is already at newer version $pkgver";;
'<') exit 0;;
*) exit 1;;
esac
@@ -59,7 +59,7 @@ do_bump() {
fixes #${fixes#\#}
"
fi
- echo "$message"
+ msg "$message"
sed -i -e "s/^pkgver=.*/pkgver=$ver/" \
-e "s/^pkgrel=.*/pkgrel=0/" \