From 276a7b4543e139454cbf6f6b269f64b90192a2b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 16 Jan 2008 20:53:37 +0000 Subject: [PATCH] - still fixing %banner Changed files: rpm.macros -> 1.416 --- rpm.macros | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rpm.macros b/rpm.macros index 579a3b8..f531038 100644 --- a/rpm.macros +++ b/rpm.macros @@ -811,6 +811,11 @@ fi; \ # -e - send to stderr instead of stdout # -n - no show banner (overrides -t) # -t - show only, if RPM_SCRIPTVERBOSITY >= n; default n=5 +# +# Tests: +# (rpm -E '%banner -e banner < m; sh -x m +# rpm -E 'date | %banner -e banner' > m; sh -x m +# %banner(aent:) ( \ RPM_SCRIPTVERBOSITY=5 \ [ -r /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm \ @@ -819,7 +824,8 @@ if [ -x /usr/bin/banner.sh ]; then \ else \ CMD="cat%{-e: >&2}" \ fi \ -eval $CMD %{?2:%2}%{?3: %3})%{nil} +eval $CMD %{?2:%2}%{?3: %3}) \ +%{nil} # useradd/groupadd macros # Author: Elan Ruusamäe -- 2.44.0