source: npl/X/gtk+2/update-gtk-immodules-2.0 @ 0105685

gcc484ntopperl-5.22
Last change on this file since 0105685 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.4 KB
Line 
1#! /bin/sh
2# Updates the immodules cache at /usr/lib(64)/gtk-2.0/2.10.0/immodules.cache
3
4umask 022
5
6# Get the machine type from uname:
7host=$(uname -m)-slackware-linux
8 
9# Fix $host for arm arch:
10case "$host" in
11  arm*) host=arm-slackware-linux-gnueabi ;;
12esac
13
14case "$host" in
15  s390x*|x86_64*)
16   if [ -x /usr/bin/gtk-query-immodules-2.0-64 ]; then
17     if [ "$1" = "--verbose" ]; then
18       echo "Updating gtk.immodules for ${host}:"
19       echo "  /usr/bin/gtk-query-immodules-2.0-64 --update-cache"
20     fi
21     /usr/bin/gtk-query-immodules-2.0-64 --update-cache 2>/dev/null
22     # Check for multilib
23     if [ -x /usr/bin/gtk-query-immodules-2.0-32 ]; then
24       if [ "$1" = "--verbose" ]; then
25         echo "Updating 32bit gtk.immodules: "
26         echo "  /usr/bin/gtk-query-immodules-2.0-32 --update-cache"
27       fi
28       /usr/bin/gtk-query-immodules-2.0-32 --update-cache 2>/dev/null
29     fi
30   fi
31   ;;
32  *)
33   if [ -x /usr/bin/gtk-query-immodules-2.0-32 ]; then
34     if [ "$1" = "--verbose" ]; then
35       echo "Updating gtk.immodules for ${host}:"
36       echo "  /usr/bin/gtk-query-immodules-2.0-32 --update-cache"
37     fi
38     /usr/bin/gtk-query-immodules-2.0-32 --update-cache 2>/dev/null
39   else
40     if [ "$1" = "--verbose" ]; then
41       echo "Updating gtk.immodules for ${host}:"
42       echo "  /usr/bin/gtk-query-immodules-2.0 --update-cache"
43     fi
44     /usr/bin/gtk-query-immodules-2.0 --update-cache 2>/dev/null
45   fi
46   ;;
47esac
48
Note: See TracBrowser for help on using the repository browser.