# html2ps is from the "html2ps"-package
# ps2pdf is part of the "ghostscript-library"-package
for i in `find * -maxdepth 0 -type d`; do
  cd $i
  echo $i
  if [ $i != "en" ]; then
     for j in `ls ../en | grep png`; do ln -s ../en/$j $j; done
     ln -s ../en/common common
  fi
  LANG=de_DE meinproc4 --check index.docbook --stylesheet /usr/share/kde4/apps/ksgmltools2/customization/kde-nochunk.xsl
  html2ps --rcfile /usr/lib/html2ps/html2psrc -D -u -n index.html >index.ps
  ps2pdf index.ps ../kdiff3_$i.pdf
  cd ..
done
