Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 18 years ago
parent
commit
b0b654efe4
2 changed files with 21 additions and 28 deletions
  1. +0
    -25
      package/gnome2/gtk+/gdkpixbuf.cron
  2. +21
    -3
      package/gnome2/gtk+/postinstall.sh

+ 0
- 25
package/gnome2/gtk+/gdkpixbuf.cron

@ -1,25 +0,0 @@
#!/bin/sh
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/gnome2/gtk+/gdkpixbuf.cron
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
/D_prefix/bin/gdk-pixbuf-query-loaders \
> /D_sysconfdir/gtk-2.0/gdk-pixbuf.loaders

+ 21
- 3
package/gnome2/gtk+/postinstall.sh

@ -1,11 +1,17 @@
/D_prefix/bin/gdk-pixbuf-query-loaders \
> /D_sysconfdir/gtk-2.0/gdk-pixbuf.loaders
# update gnome2 icon cache files for gnome2 directories that
# contain index.theme files
echo "Gnome 2 icon cache files: running gtk-update-icon-cache..."
print_status=1
all_installed "gnome2/share/.*/index.theme$" |
while read IDX; do
[ $print_status = 1 ] && \
{ echo "Gnome 2 icon cache files: running gtk-update-icon-cache..."
print_status=0 ; }
gtk-update-icon-cache "${IDX%index.theme}"
done
@ -16,12 +22,24 @@ all_touched "gnome2/share/.*/icons" |
while read FILE; do
DIR="${FILE%icons/*}icons"
[ ! -e "$DIR/index.theme" ] &&
{
[ $print_status = 1 ] && \
{ echo "Gnome 2 icon cache files: running gtk-update-icon-cache..."
print_status=0 ; }
gtk-update-icon-cache --ignore-theme-index "$DIR"
}
done
all_touched "gnome2/share/icons/hicolor" |
while read FILE; do
DIR="${FILE%hicolor/*}hicolor"
[ ! -e "$DIR/index.theme" ] &&
[ ! -e "$DIR/index.theme" ] &&
{
[ $print_status = 1 ] && \
{ echo "Gnome 2 icon cache files: running gtk-update-icon-cache..."
print_status=0 ; }
gtk-update-icon-cache --ignore-theme-index "$DIR"
}
done

Loading…
Cancel
Save