Magellan Linux

Diff of /trunk/include/gnome2.minc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1 by niro, Sun May 3 08:59:12 2009 UTC revision 74 by niro, Tue Sep 2 10:37:11 2014 UTC
# Line 77  gn2_update_mime_db() Line 77  gn2_update_mime_db()
77    
78  gn2_update_icon_cache()  gn2_update_icon_cache()
79  {  {
80     local icons
81    
82   if [ -x ${MROOT}/usr/bin/gtk-update-icon-cache ]   if [ -x ${MROOT}/usr/bin/gtk-update-icon-cache ]
83   then   then
84   pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null   if [ -d ${BUILDDIR}/${PKGNAME}/binfiles/usr/share/icons ]
85   local icons=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null)   then
86   popd &> /dev/null   pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null
87     icons=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null)
88     popd &> /dev/null
89     else
90     icons="usr/share/icons/hicolor"
91     fi
92    
93   # abort here, if no icons where found   # abort here, if no icons where found
94   [[ -z ${icons} ]] && return   [[ -z ${icons} ]] && return
# Line 98  gn2_update_icon_cache() Line 105  gn2_update_icon_cache()
105   fi   fi
106  }  }
107    
108    gn2_update_schemas()
109    {
110     if [ -x ${MROOT}/usr/bin/glib-compile-schemas ]
111     then
112     echo "Updating glib schemas ..."
113     ${MROOT}/usr/bin/glib-compile-schemas ${MROOT}/usr/share/glib-2.0/schemas
114     fi
115    }
116    
117    gn2_update_gio()
118    {
119     if [ -x ${MROOT}/usr/bin/gio-querymodules ]
120     then
121     echo "Updating glib gio modules ..."
122     ${MROOT}/usr/bin/gio-querymodules ${MROOT}/usr/$(mlibdir)/gio/modules
123     fi
124    }
125    
126  gn2_postinstall()  gn2_postinstall()
127  {  {
128   gn2_update_gconf   gn2_update_gconf
129   gn2_update_scrollkeeper   gn2_update_scrollkeeper
130     gn2_update_schemas
131     gn2_update_gio
132   gn2_update_desktop_db   gn2_update_desktop_db
133   gn2_update_mime_db   gn2_update_mime_db
134   gn2_update_icon_cache   gn2_update_icon_cache
# Line 110  gn2_postinstall() Line 137  gn2_postinstall()
137  gn2_postremove()  gn2_postremove()
138  {  {
139   gn2_update_scrollkeeper   gn2_update_scrollkeeper
140     gn2_update_schemas
141     gn2_update_gio
142   gn2_update_desktop_db   gn2_update_desktop_db
143   gn2_update_mime_db   gn2_update_mime_db
144   gn2_update_icon_cache   gn2_update_icon_cache

Legend:
Removed from v.1  
changed lines
  Added in v.74