#!/bin/sh
echo "Bengali Writer Font Utilities, Version 1.0"
echo "------------------------------------------"
echo "Adding X11 fonts for Bengali alphabet ..."
bnfontdir="/usr/X11R6/lib/fonts/barda"
xset fp- $bnfontdir
# if test -e does not work in the following line, try test -f
if test -e $bnfontdir/fonts.dir
then
   echo "fonts.dir found ... skipping"
else
   if test -w $bnfontdir
   then 
      echo "Creating fonts.dir ..."
      mkfontdir $bnfontdir
   else
      echo "Unable to create fonts.dir"
      echo "$bnfontdir is not writable"
   fi
fi
xset fp+ $bnfontdir
echo "... Done"
echo "The following Bengali fonts are added :"
xlsfonts | grep bengali
echo "Have a nice day ..."
