index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2011-06-09 20:43:25 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-15 09:18:05 -0500 |
commit | 4272b37d3d9f112b9f089dafc2e7538c4c24f7b2 (patch) | |
tree | 54fd5b534896f19da2b212848f0f5454317bb58a /scripts/library | |
parent | 6f3a2145b0de7f27a1bf5932af3fe0a67171a881 (diff) |
-rw-r--r-- | scripts/library/output_format.sh | 21 |
diff --git a/scripts/library/output_format.sh b/scripts/library/output_format.sh new file mode 100644 index 00000000..9e890e76 --- /dev/null +++ b/scripts/library/output_format.sh @@ -0,0 +1,21 @@ +msg() { + (( QUIET )) && return + local mesg=$1; shift + printf "==> ${mesg}\n" "$@" >&1 +} + +msg2() { + (( QUIET )) && return + local mesg=$1; shift + printf " -> ${mesg}\n" "$@" >&1 +} + +warning() { + local mesg=$1; shift + printf "==> $(gettext "WARNING:") ${mesg}\n" "$@" >&2 +} + +error() { + local mesg=$1; shift + printf "==> $(gettext "ERROR:") ${mesg}\n" "$@" >&2 +}
\ No newline at end of file |