Magellan Linux

Diff of /trunk/include/gnome2.minc

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

branches/magellan-next/include/gnome2.minc revision 15 by niro, Thu Jun 2 16:16:12 2011 UTC trunk/include/gnome2.minc revision 75 by niro, Tue Sep 2 11:26:21 2014 UTC
# Line 24  gn2_update_gconf() Line 24  gn2_update_gconf()
24   # first update gconf   # first update gconf
25   if [ -x ${MROOT}/usr/bin/gconftool-2 ]   if [ -x ${MROOT}/usr/bin/gconftool-2 ]
26   then   then
27     echo "Searching gconf schemas ..."
28   pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null   pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null
29   local schemas=$(find 'etc/gconf/schemas/' -name '*.schemas' 2> /dev/null)   local schemas=$(find 'etc/gconf/schemas/' -name '*.schemas' 2> /dev/null)
30   popd &> /dev/null   popd &> /dev/null
# Line 77  gn2_update_mime_db() Line 78  gn2_update_mime_db()
78    
79  gn2_update_icon_cache()  gn2_update_icon_cache()
80  {  {
81     local icons
82    
83   if [ -x ${MROOT}/usr/bin/gtk-update-icon-cache ]   if [ -x ${MROOT}/usr/bin/gtk-update-icon-cache ]
84   then   then
85   pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null   if [ -d ${BUILDDIR}/${PKGNAME}/binfiles/usr/share/icons ]
86   local icons=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null)   then
87   popd &> /dev/null   echo "Searching icon directories ..."
88     pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null
89     icons=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null)
90     popd &> /dev/null
91     else
92     icons="usr/share/icons/hicolor"
93     fi
94    
95   # abort here, if no icons where found   # abort here, if no icons where found
96   [[ -z ${icons} ]] && return   [[ -z ${icons} ]] && return
# Line 98  gn2_update_icon_cache() Line 107  gn2_update_icon_cache()
107   fi   fi
108  }  }
109    
110    gn2_update_schemas()
111    {
112     if [ -x ${MROOT}/usr/bin/glib-compile-schemas ]
113     then
114     echo "Updating glib schemas ..."
115     ${MROOT}/usr/bin/glib-compile-schemas ${MROOT}/usr/share/glib-2.0/schemas
116     fi
117    }
118    
119    gn2_update_gio()
120    {
121     if [ -x ${MROOT}/usr/bin/gio-querymodules ]
122     then
123     echo "Updating glib gio modules ..."
124     ${MROOT}/usr/bin/gio-querymodules ${MROOT}/usr/$(mlibdir)/gio/modules
125     fi
126    }
127    
128  gn2_postinstall()  gn2_postinstall()
129  {  {
130   gn2_update_gconf   gn2_update_gconf
131   gn2_update_scrollkeeper   gn2_update_scrollkeeper
132     gn2_update_schemas
133     gn2_update_gio
134   gn2_update_desktop_db   gn2_update_desktop_db
135   gn2_update_mime_db   gn2_update_mime_db
136   gn2_update_icon_cache   gn2_update_icon_cache
# Line 110  gn2_postinstall() Line 139  gn2_postinstall()
139  gn2_postremove()  gn2_postremove()
140  {  {
141   gn2_update_scrollkeeper   gn2_update_scrollkeeper
142     gn2_update_schemas
143     gn2_update_gio
144   gn2_update_desktop_db   gn2_update_desktop_db
145   gn2_update_mime_db   gn2_update_mime_db
146   gn2_update_icon_cache   gn2_update_icon_cache

Legend:
Removed from v.15  
changed lines
  Added in v.75