[csw-devel] SF.net SVN: gar:[16487] csw/mgar/pkg/gtk2/branches/2.24-raos/files/CSWgtk2. postinstall

guengel at users.sourceforge.net guengel at users.sourceforge.net
Tue Dec 13 22:49:12 CET 2011


Revision: 16487
          http://gar.svn.sourceforge.net/gar/?rev=16487&view=rev
Author:   guengel
Date:     2011-12-13 21:49:12 +0000 (Tue, 13 Dec 2011)
Log Message:
-----------
gtk2/branches/2.24-raos: Updates icon caches properly

Modified Paths:
--------------
    csw/mgar/pkg/gtk2/branches/2.24-raos/files/CSWgtk2.postinstall

Modified: csw/mgar/pkg/gtk2/branches/2.24-raos/files/CSWgtk2.postinstall
===================================================================
--- csw/mgar/pkg/gtk2/branches/2.24-raos/files/CSWgtk2.postinstall	2011-12-13 21:06:40 UTC (rev 16486)
+++ csw/mgar/pkg/gtk2/branches/2.24-raos/files/CSWgtk2.postinstall	2011-12-13 21:49:12 UTC (rev 16487)
@@ -3,28 +3,16 @@
 umask 0022
 
 BIN=gtk-update-icon-cache
-BIN_OPTS="--update-cache"
 
-echo "** Querying IM Modules"
 
-# But first, do the obvious
-/usr/bin/printf "- Default ISA... "
- at prefix@/bin/${BIN} ${BIN_OPTS} >/dev/null 2>&1
-if [ $? -ne 0 ]
-then
-    echo "Error"
-else
-    echo "OK"
-fi
+echo "** Updating Icon cache"
 
-# Now, do all other
-for i in @BUILD_ISAS@
+for i in @datadir@/icons/*
 do
-    queryloader=@prefix@/bin/$i/${BIN}
-    if [ -x "${queryloader}" ]
+    if [ -d "${i}" ]
     then
-	/usr/bin/printf "- $i ISA... "
-	"${queryloader}" ${BIN_OPTS} >/dev/null 2>&1
+	/usr/bin/printf "- ${i}... "
+	@bindir@/${BIN} ${i} >/dev/null 2>&1
 	if [ $? -ne 0 ]
 	then
 	    echo "Error"
@@ -34,5 +22,5 @@
     fi
 done
 
-echo "** Done querying IM Modules"
+echo "** Done Updating Icon cache"
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list