]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- added %%banner support (needs banner.sh)
authorpzurowski <pzurowski@pld-linux.org>
Tue, 23 Nov 2004 13:52:54 +0000 (13:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.170

rpm.macros

index 2e1a74d402f8e9b068828fcbf2b39de6b09d9280..7a3ac2a31e606132df66dc5d82c494e625a0ca3d 100644 (file)
@@ -481,3 +481,30 @@ fi; \
 #      %addusertogroup myuser agroup
 #
 %addusertogroup        /usr/lib/rpm/user_group.sh user addtogroup
+Index: rpm.macros
+===================================================================
+RCS file: /cvsroot/SOURCES/rpm.macros,v
+retrieving revision 1.158.4.8
+diff -u -r1.158.4.8 rpm.macros
+--- rpm.macros 29 Oct 2004 11:38:09 -0000      1.158.4.8
++++ rpm.macros 23 Nov 2004 13:47:51 -0000
+@@ -471,3 +471,19 @@
+ #     %addusertogroup myuser agroup
+ #
+ %addusertogroup       /usr/lib/rpm/user_group.sh user addtogroup
+
+# banner support (useful in {pre,post}{,un} and triggers)
+#
+# Usage:
+#      %banner name [-a] [-n] [-tn]
+# the banner text, the banner text
+# the banner text, and following line HAVE TO BE:
+# EOF
+# -a   - append to the banner
+# -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; \
+       banner.sh %{!-t:%{!-n:-s}} %{-t:`[ $RPM_SCRIPTVERBOSITY -ge %{-t*} ] && echo "-s"`} %{!-a:-m}%{-a:-M} %1 << EOF\
+%nil
+
This page took 0.072219 seconds and 4 git commands to generate.