Translation helper scripts
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

34 行
1.1KB

  1. #!/bin/bash
  2. #
  3. # Copyright 2007, Donatas Glodenis <dgvirtual@akl.lt>
  4. #
  5. # #
  6. # # This script is free software; you can redistribute it and/or modify
  7. # # it under the terms of the GNU General Public License 2 as published by
  8. # # the Free Software Foundation.
  9. #
  10. # # This script is distributed in the hope that it will be useful,
  11. # # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # # GNU General Public License for more details.
  14. # #
  15. # # You should have received a copy of the GNU General Public License
  16. # # along with this script; if not, write to the Free Software
  17. # # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. #
  19. # ths-pocompare-kdiff3.sh - compare two translation files using kdiff3,
  20. # unwrapps first for best comparison.
  21. if [ $# -ne 2 ]; then
  22. echo "Usage `basename $0` <file1> <file2>"
  23. exit 1
  24. fi
  25. file1=$1
  26. file2=$2
  27. msgmerge --no-wrap $file1 $file1 -o ${file1}.for.diff
  28. msgmerge --no-wrap $file2 $file2 -o ${file2}.for.diff
  29. kdiff3 ${file1}.for.diff ${file2}.for.diff
  30. rm ${file1}.for.diff ${file2}.for.diff