]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- allow %banner work without heredoc auto/ac/rpm-build-macros-1_414-1 auto/th/rpm-build-macros-1_414-1 auto/ti/rpm-build-macros-1_414-1
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 12 Jan 2008 15:07:15 +0000 (15:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- make %banner behave like one command in scripts

Changed files:
    rpm.macros -> 1.414

rpm.macros

index d110183eb4a7d8cb802c220d14c6d640e02f0105..37a687ae638808566a4f09e5f787acd0568d59d3 100644 (file)
@@ -811,7 +811,7 @@ fi; \
 # -e   - send to stderr instead of stdout
 # -n   - no show banner (overrides -t)
 # -t   - show only, if RPM_SCRIPTVERBOSITY >= n; default n=5
-%banner(aent:) \
+%banner(aent:) \{ \
 RPM_SCRIPTVERBOSITY=5 \
 [ -r /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm \
 if [ -x /usr/bin/banner.sh ]; then \
@@ -819,8 +819,8 @@ if [ -x /usr/bin/banner.sh ]; then \
 else \
        CMD="cat%{-e: >&2}" \
 fi \
-eval $CMD %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.040795 seconds and 4 git commands to generate.