summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2008-10-25 09:39:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2008-10-25 09:39:20 +0000
commit75b479777f34593c258c02b5b5ca04deee1f4dba (patch)
treefe43c8e828ee39d2ae9c8a75326c0bdc67a8eacb
parent91465846cc7763a7832205f6ade440e3c4ed1ead (diff)
downloadabuild-75b479777f34593c258c02b5b5ca04deee1f4dba.tar.gz
abuild-75b479777f34593c258c02b5b5ca04deee1f4dba.tar.bz2
abuild-75b479777f34593c258c02b5b5ca04deee1f4dba.tar.xz
abuild-75b479777f34593c258c02b5b5ca04deee1f4dba.zip
use msg for messages
-rwxr-xr-xabuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/abuild b/abuild
index 4a17b73..4bac915 100755
--- a/abuild
+++ b/abuild
@@ -27,10 +27,10 @@ default_cmds="checkdeps clean fetch checkmd5 unpack rootpkg"
all_cmds="checksum fetch unpack rootpkg build package cleancache clean srcpkg"
# functions
-vecho() {
+msg() {
local sub=
[ -n "$INSUB" ] && sub="(sub)"
- [ -z "$quiet" ] && echo ">>> $pkgname:" "$@" $sub >&2
+ [ -z "$quiet" ] && echo ">>> $pkgname $sub:" "$@" >&2
}
warning() {
@@ -39,7 +39,7 @@ warning() {
die() {
quiet=
- vecho "$@" >&2
+ msg "$@" >&2
exit 1
}
@@ -139,7 +139,7 @@ cleanpkg() {
runpart() {
local part=$1
- vecho "$part"
+ msg "$part"
$part || die "$part failed"
}
@@ -318,7 +318,7 @@ trap 'die "Aborted by user"' INT
if [ -z "$1" ]; then
if up2date && [ -z "$force" ]; then
- vecho "Package is up to date"
+ msg "Package is up to date"
else
set $default_cmds
fi