hunspell-1.6.0-renameexes.patch 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. --- hunspell-1.6.0/src/tools/chmorph.cxx
  2. +++ hunspell-1.6.0/src/tools/chmorph.cxx
  3. @@ -58,11 +58,11 @@
  4. if (!argv[i]) {
  5. fprintf(
  6. stderr,
  7. - "chmorph - change affixes by morphological analysis and generation\n"
  8. - "correct syntax is:\nchmorph affix_file "
  9. + "hunspell-chmorph - change affixes by morphological analysis and generation\n"
  10. + "correct syntax is:\nhunspell-chmorph affix_file "
  11. "dictionary_file file_to_convert STRING1 STRING2\n"
  12. "STRINGS may be arbitrary parts of the morphological descriptions\n"
  13. - "example: chmorph hu.aff hu.dic hu.txt SG_2 SG_3 "
  14. + "example: hunspell-chmorph hu.aff hu.dic hu.txt SG_2 SG_3 "
  15. " (convert informal Hungarian second person texts to formal third "
  16. "person texts)\n");
  17. exit(1);
  18. --- hunspell-1.6.0/src/tools/example.cxx
  19. +++ hunspell-1.6.0/src/tools/example.cxx
  20. @@ -53,9 +53,9 @@
  21. /* first parse the command line options */
  22. if (argc < 4) {
  23. - fprintf(stderr, "example (now it works with more dictionary files):\n");
  24. + fprintf(stderr, "hunspell-example (now it works with more dictionary files):\n");
  25. fprintf(stderr,
  26. - "example affix_file dictionary_file(s) file_of_words_to_check\n");
  27. + "hunspell-example affix_file dictionary_file(s) file_of_words_to_check\n");
  28. exit(1);
  29. }
  30. --- hunspell-1.6.0/src/tools/Makefile.am
  31. +++ hunspell-1.6.0/src/tools/Makefile.am
  32. @@ -1,4 +1,4 @@
  33. -bin_PROGRAMS=analyze chmorph hunspell munch unmunch hzip hunzip
  34. +bin_PROGRAMS=hunspell-analyze hunspell-chmorph hunspell hunspell-munch hunspell-unmunch hzip hunzip
  35. INCLUDES=-I${top_builddir}/src/hunspell -I${top_srcdir}/src/hunspell -I${top_srcdir}/src/parsers
  36. @@ -6,8 +6,8 @@
  37. hunzip_SOURCES=hunzip.cxx
  38. hunzip_LDADD = ../hunspell/libhunspell-1.6.la
  39. -munch_SOURCES=munch.cxx munch.h
  40. -unmunch_SOURCES=unmunch.cxx unmunch.h
  41. +hunspell_munch_SOURCES=munch.cxx munch.h
  42. +hunspell_unmunch_SOURCES=unmunch.cxx unmunch.h
  43. example_SOURCES=example.cxx
  44. example_LDADD = ../hunspell/libhunspell-1.6.la
  45. @@ -16,11 +16,11 @@
  46. hunspell_LDADD = @LIBINTL@ @LIBICONV@ ../parsers/libparsers.a \
  47. ../hunspell/libhunspell-1.6.la @CURSESLIB@ @READLINELIB@
  48. -analyze_SOURCES=analyze.cxx
  49. -analyze_LDADD = ../hunspell/libhunspell-1.6.la
  50. +hunspell_analyze_SOURCES=analyze.cxx
  51. +hunspell_analyze_LDADD = ../hunspell/libhunspell-1.6.la
  52. -chmorph_SOURCES=chmorph.cxx
  53. -chmorph_LDADD = ../parsers/libparsers.a ../hunspell/libhunspell-1.6.la
  54. +hunspell_chmorph_SOURCES=chmorph.cxx
  55. +hunspell_chmorph_LDADD = ../parsers/libparsers.a ../hunspell/libhunspell-1.6.la
  56. noinst_PROGRAMS=example
  57. --- hunspell-1.6.0/src/tools/munch.cxx
  58. +++ hunspell-1.6.0/src/tools/munch.cxx
  59. @@ -81,14 +81,14 @@
  60. wf = mystrdup(argv[1]);
  61. } else {
  62. fprintf(stderr, "correct syntax is:\n");
  63. - fprintf(stderr, "munch word_list_file affix_file\n");
  64. + fprintf(stderr, "hunspell-munch word_list_file affix_file\n");
  65. exit(1);
  66. }
  67. if (argv[2]) {
  68. af = mystrdup(argv[2]);
  69. } else {
  70. fprintf(stderr, "correct syntax is:\n");
  71. - fprintf(stderr, "munch word_list_file affix_file\n");
  72. + fprintf(stderr, "hunspell-munch word_list_file affix_file\n");
  73. exit(1);
  74. }
  75. --- hunspell-1.6.0/src/tools/unmunch.cxx
  76. +++ hunspell-1.6.0/src/tools/unmunch.cxx
  77. @@ -76,14 +76,14 @@
  78. wf = mystrdup(argv[1]);
  79. } else {
  80. fprintf(stderr, "correct syntax is:\n");
  81. - fprintf(stderr, "unmunch dic_file affix_file\n");
  82. + fprintf(stderr, "hunspell-unmunch dic_file affix_file\n");
  83. exit(1);
  84. }
  85. if (argv[2]) {
  86. af = mystrdup(argv[2]);
  87. } else {
  88. fprintf(stderr, "correct syntax is:\n");
  89. - fprintf(stderr, "unmunch dic_file affix_file\n");
  90. + fprintf(stderr, "hunspell-unmunch dic_file affix_file\n");
  91. exit(1);
  92. }
  93. --- hunspell-1.6.0/tests/test.sh
  94. +++ hunspell-1.6.0/tests/test.sh
  95. @@ -74,7 +74,7 @@
  96. shopt -s expand_aliases
  97. alias hunspell='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/hunspell'
  98. -alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/analyze'
  99. +alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/hunspell-analyze'
  100. if [ "$VALGRIND" != "" ]; then
  101. rm -f $TEMPDIR/test.pid*
  102. @@ -83,7 +83,7 @@
  103. fi
  104. alias hunspell='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/hunspell'
  105. - alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/analyze'
  106. + alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/hunspell-analyze'
  107. fi
  108. # Tests good words