home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gettext-0.10.24-src.tgz / tar.out / fsf / gettext / checks / msgmerge-5 < prev    next >
Lisp/Scheme  |  1996-09-28  |  2KB  |  84 lines

  1. #! /bin/sh
  2.  
  3. trap 'rm -fr $tmpfiles' 1 2 3 15
  4.  
  5. tmpfiles="mm-test5.in1.po mm-test5.in2.po"
  6. cat <<EOF > mm-test5.in1.po
  7. # SOME DESCRIPTIVE TITLE.
  8. # Copyright (C) YEAR Free Software Foundation, Inc.
  9. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  10. #
  11. #, fuzzy
  12. msgid ""
  13. msgstr ""
  14. "Content-Transfer-Encoding: ENCODING\n"
  15. "MIME-Version: 1.0\n"
  16. "Test: bla bla\n"
  17. "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
  18. "Language-Team: LANGUAGE <LL@li.org>\n"
  19. "Content-Type: text/plain; charset=CHARSET\n"
  20. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  21. "Project-Id-Version: PACKAGE VERSION\n"
  22.  
  23. msgid ""
  24. "whatever, doesn't matter\n"
  25. msgstr ""
  26. "blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla bla\n"
  27. EOF
  28.  
  29. cat <<EOF > mm-test5.in2.po
  30. msgid ""
  31. msgstr ""
  32.  
  33. msgid ""
  34. "whatever, doesn't matter\n"
  35. msgstr ""
  36. "blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla bla\n"
  37. EOF
  38.  
  39. tmpfiles="$tmpfiles mm-test5.out"
  40. : ${MSGMERGE=msgmerge}
  41. ${MSGMERGE} -q mm-test5.in1.po mm-test5.in2.po -o mm-test5.out
  42.  
  43. tmpfiles="$tmpfiles mm-test5.ok"
  44. cat <<EOF > mm-test5.ok
  45. # SOME DESCRIPTIVE TITLE.
  46. # Copyright (C) YEAR Free Software Foundation, Inc.
  47. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  48. #
  49. #, fuzzy
  50. msgid ""
  51. msgstr ""
  52. "Project-Id-Version: PACKAGE VERSION\n"
  53. "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
  54. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  55. "Language-Team: LANGUAGE <LL@li.org>\n"
  56. "MIME-Version: 1.0\n"
  57. "Content-Type: text/plain; charset=CHARSET\n"
  58. "Content-Transfer-Encoding: ENCODING\n"
  59. "Test: bla bla\n"
  60.  
  61. msgid "whatever, doesn't matter\n"
  62. msgstr ""
  63. "blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla "
  64. "bla\n"
  65. EOF
  66.  
  67. : ${DIFF=diff}
  68. ${DIFF} mm-test5.ok mm-test5.out
  69. result=$?
  70.  
  71. rm -fr $tmpfiles
  72.  
  73. exit $result
  74.  
  75. # Preserve executable bits for this shell script.
  76. # Thanks to Noah Friedman for this great trick.
  77. Local Variables:
  78. Eval: (defun frobme () (set-file-modes buffer-file-name file-mode))
  79. Eval: (make-local-variable 'file-mode)
  80. Eval: (setq file-mode (file-modes (buffer-file-name)))
  81. Eval: (make-local-variable 'after-save-hook)
  82. Eval: (add-hook 'after-save-hook 'frobme)
  83. End:
  84.