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 / msgfmt-3 < prev    next >
Lisp/Scheme  |  1996-09-28  |  1KB  |  40 lines

  1. #! /bin/sh
  2.  
  3. trap 'rm -fr $tmpfiles' 1 2 3 15
  4.  
  5. tmpfiles="mf-test3.po"
  6. cat <<EOF >mf-test3.po
  7. #
  8. #       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  9. #       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  10. #       xxxxxxxxxxxxxxxxxxxx
  11. #
  12. #       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  13. #       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  14. #       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  15. #       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  16. msgid   ""
  17. msgstr  ""
  18. EOF
  19.  
  20. tmpfiles="$tmpfiles mftest3.mo"
  21. : ${MSGFMT=msgfmt}
  22. ${MSGFMT} mf-test3.po -o mftest3.mo
  23.  
  24. test ! -f mftest3.mo
  25. result=$?
  26.  
  27. rm -fr $tmpfiles
  28.  
  29. exit $result
  30.  
  31. # Preserve executable bits for this shell script.
  32. # Thanks to Noah Friedman for this great trick.
  33. Local Variables:
  34. Eval: (defun frobme () (set-file-modes buffer-file-name file-mode))
  35. Eval: (make-local-variable 'file-mode)
  36. Eval: (setq file-mode (file-modes (buffer-file-name)))
  37. Eval: (make-local-variable 'after-save-hook)
  38. Eval: (add-hook 'after-save-hook 'frobme)
  39. End:
  40.