hunspell-1.3-renameexes.patch 5.2 KB

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