for i in *.tex
do
  X=`basename $i .tex`
  rm language.dat
  ln -s $i language.dat
  tex -ini latex.ltx
  mv latex.fmt $X.fmt
done
