From 4272b37d3d9f112b9f089dafc2e7538c4c24f7b2 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Thu, 9 Jun 2011 20:43:25 +1000 Subject: 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 Signed-off-by: Dan McGee --- scripts/pkgdelta.sh.in | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'scripts/pkgdelta.sh.in') diff --git a/scripts/pkgdelta.sh.in b/scripts/pkgdelta.sh.in index d17b41d2..c5a48828 100644 --- a/scripts/pkgdelta.sh.in +++ b/scripts/pkgdelta.sh.in @@ -34,21 +34,7 @@ QUIET=0 # ensure we have a sane umask set umask 0022 -msg() { - (( 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) # print usage instructions usage() { -- cgit v1.2.3-24-g4f1b