3
# this script is a no-op since 2.10.3-2
5
TMPFILE=`mktemp /tmp/gtk+-@VERSION@.XXXXXXXXXX`
9
if [ "x$1" != "x" ]; then
10
VERSION=`echo $1 | sed -e 's/-[A-Za-z0-9\.]*$//' -e 's/+[A-Za-z0-9\.]*$//'`
15
if ! test -d /usr/lib/gtk-$apiver/$VERSION/immodules; then
16
echo "You don't have immodules directory for version $VERSION."
17
echo "Use default version instead."
21
echo -n "Updating the IM modules list for GTK+-$VERSION..."
22
/usr/bin/gtk-query-immodules-$apiver `find /usr/lib/gtk-$apiver/$VERSION/immodules -name '*.so'` > $TMPFILE
23
if [ "x`cat $TMPFILE | grep -v '^#'`" = "x" ]; then
24
echo "the GTK+ IM modules was not found."
28
if ! test -d /etc/gtk-$apiver; then
29
echo -n "Creating /etc/gtk-$apiver..."
30
mkdir /etc/gtk-$apiver
33
cp $TMPFILE /etc/gtk-$apiver/gtk.immodules
34
chmod 644 /etc/gtk-$apiver/gtk.immodules
9
GTK_BINARY_VERSION="@GTK_BINARY_VERSION@"
11
SHARED_PKG="@SHARED_PKG@"
12
TMPFILE=$(mktemp -t "gtk+$APIVER-$VERSION.XXXXXXXXXX")
14
echo -n "Updating the IM modules list for Gtk+ $VERSION..."
15
"/usr/lib/$SHARED_PKG/gtk-query-immodules-$APIVER" \
16
$(find "/usr/lib/gtk-$APIVER/$GTK_BINARY_VERSION/immodules" -name '*.so') \
18
if [ "x`cat "$TMPFILE" | grep -v '^#'`" = "x" ]; then
19
echo "no Gtk+ IM modules found."
23
if ! test -d "/etc/gtk-$APIVER"; then
24
echo -n "Creating /etc/gtk-$APIVER..."
25
mkdir "/etc/gtk-$APIVER"
28
cp "$TMPFILE" "/etc/gtk-$APIVER/gtk.immodules"
29
chmod 644 "/etc/gtk-$APIVER/gtk.immodules"