Magellan Linux

Diff of /trunk/include/gnome2.minc

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

revision 72 by niro, Tue Sep 2 09:42:32 2014 UTC revision 73 by niro, Tue Sep 2 09:48:27 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   if [ -d ${BUILDDIR}/${PKGNAME}/binfiles/etc/gconf/schemas ]   pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null
28   then   local schemas=$(find 'etc/gconf/schemas/' -name '*.schemas' 2> /dev/null)
29   pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null   popd &> /dev/null
30   local schemas=$(find 'etc/gconf/schemas/' -name '*.schemas' 2> /dev/null)  
31   popd &> /dev/null   # abort here, if no schemas where found
32     [[ -z ${schemas} ]] && return
33   # abort here, if no schemas where found  
34   [[ -z ${schemas} ]] && return   echo "Updating gconf schemas ..."
35     export GCONF_CONFIG_SOURCE=$(${MROOT}/usr/bin/gconftool-2 --get-default-source)
36   echo "Updating gconf schemas ..."  
37   export GCONF_CONFIG_SOURCE=$(${MROOT}/usr/bin/gconftool-2 --get-default-source)   local i
38     for i in ${schemas}
39   local i   do
40   for i in ${schemas}   # echo "DEBUG::gconf install  ${i}"
41   do   ${MROOT}/usr/bin/gconftool-2 --makefile-install-rule ${MROOT}/${i} 1>/dev/null
42   # echo "DEBUG::gconf install  ${i}"   done
43   ${MROOT}/usr/bin/gconftool-2 --makefile-install-rule ${MROOT}/${i} 1>/dev/null   gn2_reload_gconf
  done  
  gn2_reload_gconf  
  fi  
44   fi   fi
45  }  }
46    
# Line 63  gn2_update_desktop_db() Line 60  gn2_update_desktop_db()
60   # update desktop db   # update desktop db
61   if [ -x ${MROOT}/usr/bin/update-desktop-database ]   if [ -x ${MROOT}/usr/bin/update-desktop-database ]
62   then   then
63   if [ -d ${BUILDDIR}/${PKGNAME}/binfiles/usr/share/applications ]   echo "Updating desktop mime database ..."
64   then   ${MROOT}/usr/bin/update-desktop-database -q ${MROOT}/usr/share/applications
  echo "Updating desktop mime database ..."  
  ${MROOT}/usr/bin/update-desktop-database -q ${MROOT}/usr/share/applications  
  fi  
65   fi   fi
66  }  }
67    
# Line 76  gn2_update_mime_db() Line 70  gn2_update_mime_db()
70   # update mime db   # update mime db
71   if [ -x ${MROOT}/usr/bin/update-mime-database ]   if [ -x ${MROOT}/usr/bin/update-mime-database ]
72   then   then
73   if [ -d ${BUILDDIR}/${PKGNAME}/binfiles/usr/share/mime ]   echo "Updating shared mime info database ..."
74   then   ${MROOT}/usr/bin/update-mime-database ${MROOT}/usr/share/mime
  echo "Updating shared mime info database ..."  
  ${MROOT}/usr/bin/update-mime-database ${MROOT}/usr/share/mime  
  fi  
75   fi   fi
76  }  }
77    
# Line 88  gn2_update_icon_cache() Line 79  gn2_update_icon_cache()
79  {  {
80   if [ -x ${MROOT}/usr/bin/gtk-update-icon-cache ]   if [ -x ${MROOT}/usr/bin/gtk-update-icon-cache ]
81   then   then
82   if [ -d ${BUILDDIR}/${PKGNAME}/binfiles/usr/share/icons ]   pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null
83   then   local icons=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null)
84   pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null   popd &> /dev/null
85   local icons=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null)  
86   popd &> /dev/null   # abort here, if no icons where found
87     [[ -z ${icons} ]] && return
88   # abort here, if no icons where found  
89   [[ -z ${icons} ]] && return   echo "Updating icons cache ..."
90     local i
91   echo "Updating icons cache ..."   for i in ${icons}
92   local i   do
93   for i in ${icons}   if [[ -f ${MROOT}/${i}/index.theme ]]
94   do   then
95   if [[ -f ${MROOT}/${i}/index.theme ]]   ${MROOT}/usr/bin/gtk-update-icon-cache -qf ${MROOT}/${i}
96   then   fi
97   ${MROOT}/usr/bin/gtk-update-icon-cache -qf ${MROOT}/${i}   done
  fi  
  done  
  fi  
98   fi   fi
99  }  }
100    
# Line 114  gn2_update_schemas() Line 102  gn2_update_schemas()
102  {  {
103   if [ -x ${MROOT}/usr/bin/glib-compile-schemas ]   if [ -x ${MROOT}/usr/bin/glib-compile-schemas ]
104   then   then
105   if [ -d ${BUILDDIR}/${PKGNAME}/binfiles/usr/share/glib-2.0/schemas ]   echo "Updating glib schemas ..."
106   then   ${MROOT}/usr/bin/glib-compile-schemas ${MROOT}/usr/share/glib-2.0/schemas
  echo "Updating glib schemas ..."  
  ${MROOT}/usr/bin/glib-compile-schemas ${MROOT}/usr/share/glib-2.0/schemas  
  fi  
107   fi   fi
108  }  }
109    
# Line 126  gn2_update_gio() Line 111  gn2_update_gio()
111  {  {
112   if [ -x ${MROOT}/usr/bin/gio-querymodules ]   if [ -x ${MROOT}/usr/bin/gio-querymodules ]
113   then   then
114   if [ -d ${BUILDDIR}/${PKGNAME}/binfiles/usr/$(mlibdir)/gio/modules ]   echo "Updating glib gio modules ..."
115   then   ${MROOT}/usr/bin/gio-querymodules ${MROOT}/usr/$(mlibdir)/gio/modules
  echo "Updating glib gio modules ..."  
  ${MROOT}/usr/bin/gio-querymodules ${MROOT}/usr/$(mlibdir)/gio/modules  
  fi  
116   fi   fi
117  }  }
118    

Legend:
Removed from v.72  
changed lines
  Added in v.73