SOURCES: rpm.macros - make those gnome macros termnated in shell s...

glen glen at pld-linux.org
Mon Mar 3 22:34:38 CET 2008


Author: glen                         Date: Mon Mar  3 21:34:38 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- make those gnome macros termnated in shell syntax

---- Files affected:
SOURCES:
   rpm.macros (1.436 -> 1.437) 

---- Diffs:

================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.436 SOURCES/rpm.macros:1.437
--- SOURCES/rpm.macros:1.436	Sat Mar  1 13:12:00 2008
+++ SOURCES/rpm.macros	Mon Mar  3 22:34:33 2008
@@ -494,52 +494,48 @@
 #
 %gconf_schema_install() \
 	umask 022; \
-	GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/%{?1}%{!?1:*.schemas} > /dev/null \
-	%{nil}
+	GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/%{?1}%{!?1:*.schemas} > /dev/null; \
+%{nil}
 
 %gconf_schema_uninstall() \
 if [ $1 = 0 ]; then \
 	umask 022; \
 	GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" /usr/bin/gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/%{?1} > /dev/null \
-fi \
+fi; \
 %{nil}
 
 #-----------------------------------------------------------------
 # Update desktop MIME database
 # requires: desktop-file-utils
 #
-%update_desktop_database_post() {{ \
+%update_desktop_database_post() \
 	umask 022; \
 	/usr/bin/update-desktop-database -q; \
-}} \
 %{nil}
 
-%update_desktop_database_postun() {{ \
-if [ $1 = 0 ]; then \
+%update_desktop_database_postun() \
+if [ "$1" = "0" ]; then \
 	umask 022; \
 	/usr/bin/update-desktop-database -q; \
-fi \
-}} \
+fi; \
 %{nil}
 
 #-----------------------------------------------------------------
 # Update shared MIME info database
 # requires: shared-mime-info
 #
-%update_mime_database() {{ \
+%update_mime_database() \
 	umask 022; \
 	/usr/bin/update-mime-database %{_datadir}/mime; \
-}} \
 %{nil}
 
 #-----------------------------------------------------------------
 # Update icon cache
 # requires: gtk+
 #
-%update_icon_cache() {{ \
+%update_icon_cache() \
 	umask 022; \
 	/usr/bin/gtk-update-icon-cache -qf %{_datadir}/icons/%1; \
-}} \
 %{nil}
 
 #-----------------------------------------------------------------
@@ -548,12 +544,12 @@
 #
 %scrollkeeper_update_post() \
 	/usr/bin/scrollkeeper-update -q; \
-	%{nil}
+%{nil}
 
 %scrollkeeper_update_postun() \
-if [ $1 = 0 ]; then \
+if [ "$1" = "0" ]; then \
 	/usr/bin/scrollkeeper-update -q; \
-fi \
+fi; \
 %{nil}
 
 #-----------------------------------------------------------------
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm.macros?r1=1.436&r2=1.437&f=u



More information about the pld-cvs-commit mailing list