summaryrefslogtreecommitdiffstats
path: root/scripts/pacman-key.sh.in
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-06-09 12:43:25 +0200
committerDan McGee <dan@archlinux.org>2011-06-15 16:18:05 +0200
commit4272b37d3d9f112b9f089dafc2e7538c4c24f7b2 (patch)
tree54fd5b534896f19da2b212848f0f5454317bb58a /scripts/pacman-key.sh.in
parent6f3a2145b0de7f27a1bf5932af3fe0a67171a881 (diff)
downloadpacman-4272b37d3d9f112b9f089dafc2e7538c4c24f7b2.tar.gz
pacman-4272b37d3d9f112b9f089dafc2e7538c4c24f7b2.tar.xz
scripts: refactor output formatting functions
Move the common output formatting functions into a separate library file and import that into each script. makepkg is excluded due to its additional color formatting. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/pacman-key.sh.in')
-rw-r--r--scripts/pacman-key.sh.in21
1 files changed, 1 insertions, 20 deletions
diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in
index 20ec20fa..a757c9b8 100644
--- a/scripts/pacman-key.sh.in
+++ b/scripts/pacman-key.sh.in
@@ -26,26 +26,7 @@ export TEXTDOMAINDIR='@localedir@'
myver="@PACKAGE_VERSION@"
-msg() {
- 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
-}
+m4_include(library/output_format.sh)
usage() {
printf "pacman-key (pacman) %s\n" ${myver}