]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- still fixing %banner auto/ac/rpm-build-macros-1_416-1 auto/th/rpm-build-macros-1_416-1 auto/ti/rpm-build-macros-1_416-1
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 16 Jan 2008 20:53:37 +0000 (20:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.416

rpm.macros

index 579a3b85a86fd86ea32344e20f48e5f5ac4db1a4..f531038af19d096cee1aaceabb5f398925b5033b 100644 (file)
@@ -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 <<EOF'; echo -e 'hi\nEOF') > 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 <glen@pld-linux.org>
This page took 0.053721 seconds and 4 git commands to generate.