view kdiff3/doc/createpdfdoc @ 96:9000a9763f6f

Fixed problem where destination directory would be renamed or deleted during copy operation. Now if the destination directory exists only the files inside will be copied.
author joachim99
date Thu, 25 Mar 2010 20:37:37 +0000
parents fcd146072e0c
children
line wrap: on
line source
# 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