diff options
author | Allan McRae <allan@archlinux.org> | 2011-06-09 12:43:25 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-15 16:18:05 +0200 |
commit | 4272b37d3d9f112b9f089dafc2e7538c4c24f7b2 (patch) | |
tree | 54fd5b534896f19da2b212848f0f5454317bb58a /scripts/pacman-db-upgrade.sh.in | |
parent | 6f3a2145b0de7f27a1bf5932af3fe0a67171a881 (diff) | |
download | pacman-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-db-upgrade.sh.in')
-rw-r--r-- | scripts/pacman-db-upgrade.sh.in | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/scripts/pacman-db-upgrade.sh.in b/scripts/pacman-db-upgrade.sh.in index 17d8beb4..eaaa9346 100644 --- a/scripts/pacman-db-upgrade.sh.in +++ b/scripts/pacman-db-upgrade.sh.in @@ -28,15 +28,8 @@ myver='@PACKAGE_VERSION@' eval $(awk '/DBPath/ {print $1$2$3}' @sysconfdir@/pacman.conf) dbroot="${DBPath:-@localstatedir@/lib/pacman/}" -msg() { - local mesg=$1; shift - printf "==> ${mesg}\n" "$@" >&2 -} +m4_include(library/output_format.sh) -error () { - local mesg=$1; shift - printf "==> ERROR: ${mesg}\n" "$@" >&2 -} usage() { printf "pacman-db-upgrade (pacman) %s\n\n" "$myver" printf "$(gettext "Usage: %s [pacman_db_root]")\n\n" "$0" |