diff options
author | Dubiousjim <dubiousjim@gmail.com> | 2013-07-05 00:21:37 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-09 07:12:56 +0000 |
commit | b2d6b47be1ae42ff6271cfa31283a518ea5949ef (patch) | |
tree | 1b7de05e4c09f8dd678f31cff96e31ed51960467 /abump.in | |
parent | f15c630cb888dad70809efc12644a4570372320b (diff) | |
download | abuild-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-x | abump.in | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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/" \ |