diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2008-10-25 09:39:20 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2008-10-25 09:39:20 +0000 |
commit | 75b479777f34593c258c02b5b5ca04deee1f4dba (patch) | |
tree | fe43c8e828ee39d2ae9c8a75326c0bdc67a8eacb | |
parent | 91465846cc7763a7832205f6ade440e3c4ed1ead (diff) | |
download | abuild-75b479777f34593c258c02b5b5ca04deee1f4dba.tar.gz abuild-75b479777f34593c258c02b5b5ca04deee1f4dba.tar.bz2 abuild-75b479777f34593c258c02b5b5ca04deee1f4dba.tar.xz abuild-75b479777f34593c258c02b5b5ca04deee1f4dba.zip |
use msg for messages
-rwxr-xr-x | abuild | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |