]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- rewritten %%banner macro (now is much safer)
authorpzurowski <pzurowski@pld-linux.org>
Wed, 24 Nov 2004 06:43:18 +0000 (06:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- req. macro rev. 1.175
- rel .3
- %%banner works for me

Changed files:
    rpm.macros -> 1.175

rpm.macros

index 352d041c9a7cc90a6435e9b9903925a462189728..49bf992d78955c646031e4de80f67eadf4dd7565 100644 (file)
@@ -495,7 +495,13 @@ fi; \
 # -n   - no show banner (overriden by -t)
 # -t   - show only, if RPM_SCRIPTVERBOSITY >= n
 %banner(a:n:t:)        \
-       [ -r /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm || RPM_SCRIPTVERBOSITY=5; \
-       %{_bindir}/banner.sh %{!-t:%{!-n:-s}} %{-t:`[ $RPM_SCRIPTVERBOSITY -ge %{-t*} ] && echo "-s"`} %{!-a:-m}%{-a:-M} %1 << EOF\
+RPM_SCRIPTVERBOSITY=5 \
+[ -r /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm \
+if [ -x /usr/bin/banner.sh ]; then \
+       CMD="/usr/bin/banner.sh %{!-t:%{!-n:-s}} %{-t:\`[ $RPM_SCRIPTVERBOSITY -ge %{-t*} ] && echo '-s'\`} %{!-a:-m}%{-a:-M} %1" \
+else \
+       CMD="cat" \
+fi \
+$CMD << EOF \
 %nil
-
This page took 0.255663 seconds and 4 git commands to generate.