patch-scripts_release_translations_sh 718 B

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-scripts_release_translations_sh,v 1.1 2007/01/09 16:30:38 steven Exp $
  2. --- scripts/release_translations.sh.orig Sat Jan 6 21:40:01 2007
  3. +++ scripts/release_translations.sh Sat Jan 6 21:40:08 2007
  4. @@ -0,0 +1,24 @@
  5. +#!/bin/sh
  6. +
  7. +cd ..
  8. +cwd=`pwd`
  9. +
  10. +for dir in qcad qcadactions qcadguiqt qcadcmd qcadlib
  11. +do
  12. + cd $dir/src
  13. + echo "running lrelease in $dir/src..."
  14. + find . -type f -name '*.ts' -exec $QTDIR/bin/lrelease '{}' \;
  15. + find . -type f -name '*.pro' -exec $QTDIR/bin/lrelease '{}' \;
  16. + cd $cwd
  17. +
  18. + cd $dir/src/ts
  19. + echo "copying from $dir/src/ts..."
  20. + for tf in *.qm
  21. + do
  22. + if [ ! -e $cwd/qcad/qm/$tf ]
  23. + then
  24. + cp $cwd/$dir/src/ts/$tf $cwd/qcad/qm/$tf
  25. + fi
  26. + done
  27. + cd $cwd
  28. +done