#!/bin/bash

cd /etc/X11/xinit/xim.d/
for sc in *; do 
	unset NAME
	unset IFEXISTS
	unset LANGUAGE
	unset IM_EXEC
	eval `echo -n "export "; grep "^NAME" "$sc"`
	eval `echo -n "export "; grep "^IFEXISTS" "$sc"`
	eval `echo -n "export "; grep "^LANGUAGE" "$sc"`
	source "$sc"
	echo "FILE $sc"
	echo "NAME $NAME"
	if test x"$LANGUAGE" != x"" ; then
		echo "LANGUAGE $LANGUAGE"
	fi
	echo "IFEXISTS $IFEXISTS"
	echo "IM_EXEC $IM_EXEC"
done

