Ticket #15991: patch-hunspell-renameexes.diff

File patch-hunspell-renameexes.diff, 3.7 KB (added by raimue (Rainer Müller), 16 years ago)

Patch for files/

  • src/tools/Makefile.am

    === modified file 'src/tools/Makefile.am'
     
    1 bin_PROGRAMS=analyze chmorph example hunspell munch unmunch hzip hunzip
     1bin_PROGRAMS=hunspell-analyze hunspell-chmorph hunspell-example hunspell hunspell-munch hunspell-unmunch hzip hunzip
    22
    33INCLUDES=-I${top_srcdir}/src/hunspell -I${top_srcdir}/src/parsers
    44
     
    66hunzip_SOURCES=hunzip.cxx
    77hunzip_LDADD = ../hunspell/libhunspell-1.2.la
    88
    9 munch_SOURCES=munch.c
    10 unmunch_SOURCES=unmunch.c
     9hunspell_munch_SOURCES=munch.c
     10hunspell_unmunch_SOURCES=unmunch.c
    1111include_HEADERS=munch.h unmunch.h
    1212
    13 example_SOURCES=example.cxx
    14 example_LDADD = ../hunspell/libhunspell-1.2.la
     13hunspell_example_SOURCES=example.cxx
     14hunspell_example_LDADD = ../hunspell/libhunspell-1.2.la
    1515
    1616hunspell_SOURCES=hunspell.cxx
    1717hunspell_LDADD = @LIBINTL@ ../hunspell/libhunspell-1.2.la \
    1818        ../parsers/libparsers.a @CURSESLIB@ @READLINELIB@
    1919
    20 analyze_SOURCES=analyze.cxx
    21 analyze_LDADD = ../hunspell/libhunspell-1.2.la
    22 
    23 chmorph_SOURCES=chmorph.cxx
    24 chmorph_LDADD = ../hunspell/libhunspell-1.2.la ../parsers/libparsers.a
    25 
    26 noinst_PROGRAMS=example
     20hunspell_analyze_SOURCES=analyze.cxx
     21hunspell_analyze_LDADD = ../hunspell/libhunspell-1.2.la
     22
     23hunspell_chmorph_SOURCES=chmorph.cxx
     24hunspell_chmorph_LDADD = ../hunspell/libhunspell-1.2.la ../parsers/libparsers.a
     25
     26noinst_PROGRAMS=hunspell-example
    2727
    2828EXTRA_DIST=makealias affixcompress
  • src/tools/example.cxx

    === modified file 'src/tools/example.cxx'
     
    1717    /* first parse the command line options */
    1818
    1919    if (argc < 4) {
    20         fprintf(stderr,"example (now it works with more dictionary files):\n");
    21         fprintf(stderr,"example affix_file dictionary_file(s) file_of_words_to_check\n");
     20        fprintf(stderr,"hunspell-example (now it works with more dictionary files):\n");
     21        fprintf(stderr,"hunspell-example affix_file dictionary_file(s) file_of_words_to_check\n");
    2222        exit(1);
    2323    }
    2424 
  • src/tools/munch.c

    === modified file 'src/tools/munch.c'
     
    4242       wf = mystrdup(argv[1]);
    4343  } else {
    4444    fprintf(stderr,"correct syntax is:\n");
    45     fprintf(stderr,"munch word_list_file affix_file\n");
     45    fprintf(stderr,"hunspell-munch word_list_file affix_file\n");
    4646    exit(1);
    4747  }
    4848  if (argv[2]) {
    4949       af = mystrdup(argv[2]);
    5050  } else {
    5151    fprintf(stderr,"correct syntax is:\n");
    52     fprintf(stderr,"munch word_list_file affix_file\n");
     52    fprintf(stderr,"hunspell-munch word_list_file affix_file\n");
    5353    exit(1);
    5454  }
    5555
  • src/tools/unmunch.c

    === modified file 'src/tools/unmunch.c'
     
    3939       wf = mystrdup(argv[1]);
    4040  } else {
    4141    fprintf(stderr,"correct syntax is:\n");
    42     fprintf(stderr,"unmunch dic_file affix_file\n");
     42    fprintf(stderr,"hunspell-unmunch dic_file affix_file\n");
    4343    exit(1);
    4444  }
    4545  if (argv[2]) {
    4646       af = mystrdup(argv[2]);
    4747  } else {
    4848    fprintf(stderr,"correct syntax is:\n");
    49     fprintf(stderr,"unmunch dic_file affix_file\n");
     49    fprintf(stderr,"hunspell-unmunch dic_file affix_file\n");
    5050    exit(1);
    5151  }
    5252
  • tests/test.sh

    === modified file 'tests/test.sh'
     
    3434shopt -s expand_aliases
    3535
    3636alias hunspell='../src/tools/hunspell'
    37 alias analyze='../src/tools/analyze'
     37alias analyze='../src/tools/hunspell-analyze'
    3838
    3939if [ "$VALGRIND" != "" ]; then
    4040  rm -f $TEMPDIR/test.pid*