#!/bin/sh

PREFIX=/usr/share/X11/xkb/symbols/nokia_vndr
RETPATH=`pwd`

if [ -e $PREFIX/rx-51 ] ; then
	if [ -e $PREFIX/xkblayouts-rx51-ru/rx-51.orig ] ; then
	  echo "Xkb file already modified"
	  exit 255
	fi
	if [ -e $PREFIX/xkblayouts-rx51-ru/xkb-make.pl ] ; then
	  cd $PREFIX/xkblayouts-rx51-ru
		cp ../rx-51 rx-51.orig
	  ./xkb-make.pl rx-51.orig ../rx-51
	  cd $RETPATH
	fi
fi

exit 0

