Magellan Linux

Diff of /trunk/include/gnome2.minc

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

revision 73 by niro, Tue Sep 2 09:48:27 2014 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

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