diff options
Diffstat (limited to 'textproc/dico/files')
-rw-r--r-- | textproc/dico/files/patch-Makefile.am | 7 | ||||
-rw-r--r-- | textproc/dico/files/patch-configure.in | 7 | ||||
-rw-r--r-- | textproc/dico/files/patch-lexique-Makefile.am | 7 | ||||
-rw-r--r-- | textproc/dico/files/patch-lexique-version.dic | 9 | ||||
-rw-r--r-- | textproc/dico/files/patch-manuel-Makefile.am | 10 | ||||
-rw-r--r-- | textproc/dico/files/patch-sources-Makefile.am | 4 | ||||
-rw-r--r-- | textproc/dico/files/patch-sources-dico.c | 134 |
7 files changed, 178 insertions, 0 deletions
diff --git a/textproc/dico/files/patch-Makefile.am b/textproc/dico/files/patch-Makefile.am new file mode 100644 index 000000000000..7e5fba1260da --- /dev/null +++ b/textproc/dico/files/patch-Makefile.am @@ -0,0 +1,7 @@ +--- old/Makefile.am Thu Jan 1 01:00:00 1970 ++++ new/Makefile.am Wed Oct 11 03:49:06 2000 +@@ -0,0 +1,4 @@ ++docdir = $(datadir)/doc/dico ++doc_DATA = README.TXT ++ ++SUBDIRS = sources lexique manuel diff --git a/textproc/dico/files/patch-configure.in b/textproc/dico/files/patch-configure.in new file mode 100644 index 000000000000..c735131a228e --- /dev/null +++ b/textproc/dico/files/patch-configure.in @@ -0,0 +1,7 @@ +--- old/configure.in Thu Jan 1 01:00:00 1970 ++++ new/configure.in Wed Oct 11 04:19:05 2000 +@@ -0,0 +1,4 @@ ++AC_INIT(sources/dico.c) ++AM_INIT_AUTOMAKE(dico, 1.1) ++AC_PROG_CC ++AC_OUTPUT([Makefile sources/Makefile lexique/Makefile manuel/Makefile]) diff --git a/textproc/dico/files/patch-lexique-Makefile.am b/textproc/dico/files/patch-lexique-Makefile.am new file mode 100644 index 000000000000..c6d008b26b5b --- /dev/null +++ b/textproc/dico/files/patch-lexique-Makefile.am @@ -0,0 +1,7 @@ +--- old/lexique/Makefile.am Thu Jan 1 01:00:00 1970 ++++ new/lexique/Makefile.am Wed Oct 11 04:40:58 2000 +@@ -0,0 +1,4 @@ ++pkgdata_DATA = a.dic b.dic c.dic d.dic e.dic f.dic g.dic h.dic \ ++ i.dic j.dic k.dic l.dic m.dic n.dic o.dic p.dic \ ++ q.dic r.dic s.dic t.dic u.dic v.dic w.dic x.dic \ ++ y.dic z.dic version.dic diff --git a/textproc/dico/files/patch-lexique-version.dic b/textproc/dico/files/patch-lexique-version.dic new file mode 100644 index 000000000000..97926141b99f --- /dev/null +++ b/textproc/dico/files/patch-lexique-version.dic @@ -0,0 +1,9 @@ +--- old/lexique/version.dic Thu Jan 1 01:00:00 1970 ++++ new/lexique/version.dic Wed Oct 11 04:40:35 2000 +@@ -0,0 +1,6 @@ ++Derniere mise a jour: 21 Octobre 1992 ++Realisee par : Rene Cougnenc ++Jeu de caracteres : ISO 8859-1 ( 8 bits Latin-1) ++ ++ 94836 mots +++ 39072 communes de France diff --git a/textproc/dico/files/patch-manuel-Makefile.am b/textproc/dico/files/patch-manuel-Makefile.am new file mode 100644 index 000000000000..2218415ef217 --- /dev/null +++ b/textproc/dico/files/patch-manuel-Makefile.am @@ -0,0 +1,10 @@ +--- old/manuel/Makefile.am Thu Jan 1 01:00:00 1970 ++++ new/manuel/Makefile.am Wed Oct 11 03:46:58 2000 +@@ -0,0 +1,7 @@ ++docdir = $(datadir)/doc/dico ++doc_DATA = copying.doc ++ ++man_MANS = dico.1 ++ ++EXTRA_DISTS = install.doc.msdos manuel.txt msdos.doc readme.txt.msdos \ ++ unix.doc diff --git a/textproc/dico/files/patch-sources-Makefile.am b/textproc/dico/files/patch-sources-Makefile.am new file mode 100644 index 000000000000..18e1cbe003c7 --- /dev/null +++ b/textproc/dico/files/patch-sources-Makefile.am @@ -0,0 +1,4 @@ +--- old/sources/Makefile.am Thu Jan 1 01:00:00 1970 ++++ new/sources/Makefile.am Wed Oct 11 03:35:13 2000 +@@ -0,0 +1 @@ ++bin_PROGRAMS = dico diff --git a/textproc/dico/files/patch-sources-dico.c b/textproc/dico/files/patch-sources-dico.c new file mode 100644 index 000000000000..31ce0103adbf --- /dev/null +++ b/textproc/dico/files/patch-sources-dico.c @@ -0,0 +1,134 @@ +--- old/sources/dico.c Thu Mar 27 14:57:57 1997 ++++ new/sources/dico.c Wed Oct 11 04:04:49 2000 +@@ -19,8 +19,8 @@ + | | + +-----------------------------------------------------------------------+ + */ +-#define LINUX + ++#ifndef __FreeBSD__ + #ifndef LINUX + #ifndef sony + #ifndef MSDOS +@@ -28,6 +28,7 @@ + #endif + #endif + #endif ++#endif + + #ifdef sony /* Sony News WorkStations */ + #define UNIX +@@ -42,6 +43,12 @@ + #define MYOS "LINUX" + #endif + ++#ifdef __FreeBSD__ /* FreeBSD Operating System */ ++#define UNIX ++#define ISO_CHARS ++#define MYOS "FreeBSD" ++#endif ++ + #ifdef MSDOS /* Systeme d'operation de disque */ + #define MYOS "MSDOS" /* Microsoft :-) */ + #endif +@@ -51,8 +58,11 @@ + #define ISO_TERM 3 + #define COMMENT_CHAR 35 /* '#' ligne de commentaire */ + +-#define DICT_PATH "/usr/local/lib/dico" /* path par defaut unix/dos */ ++#ifndef MSDOS ++#define DICT_PATH "!!PREFIX!!/share/dico" /* path par defaut unix/dos */ ++#else + #define DOS_PATH "lexique" /* path par defaut Dos uniquement */ ++#endif + #define DICT_EXT ".dic" /* extension des fichiers dicos */ + #define VERSION_FILE "version.dic" /* fichier texte version dico */ + +@@ -60,11 +70,13 @@ + #define OK 0 + #define MYVBUF 10240 /* pour setvbuf() eventuel */ + ++#ifndef __FreeBSD__ + #ifndef LINUX + #ifndef sony + #define MUST_HAVE_BUF /* Linux va moins vite avec setvbuf! */ + #endif + #endif ++#endif + + typedef unsigned char byte; + +@@ -147,7 +159,9 @@ + if(argv[1][0] =='-') /* option ligne commande?*/ + return options( argv[1][1] ); + ++#ifndef __FreeBSD__ + mybanner(); /* on dit bonjour... */ ++#endif + + while( --argc) /* Allez, roulez ! */ + { +@@ -157,7 +171,9 @@ + lookfor( argv[argc] ); + } + ++#ifndef __FreeBSD__ + fprintf(stderr,"\nTrouve %ld mot%s\n",count, count > 1 ? "s" :"" ); ++#endif + + return OK ; + } +@@ -369,7 +385,9 @@ + + StrLwr( pattern ); /* passe en minuscules comme le dico */ + car = equival (pattern[0]); ++#ifndef __FreeBSD__ + fprintf(stderr, "Recherche %s dans la lettre %c... \n\n", pattern, car) ; ++#endif + + sprintf(fname, "%s%s%c%s", dict_path, sep, pattern[0], DICT_EXT ) ; + +@@ -395,7 +413,11 @@ + if( fmatch(sbuf,pattern) ) + { + translate( buf ); /* gere terminaux.... */ ++#ifndef __FreeBSD__ + printf("\t%s\n", beautify(buf) ); ++#else ++ printf("%s\n", beautify(buf) ); ++#endif + count ++ ; + } + } +@@ -451,8 +473,11 @@ + if( fmatch(sbuf,pattern) ) + { + translate( buf ) ; +- buf[0] = ToUpper( buf[0] ) ; ++#ifndef __FreeBSD__ + printf("\t%s\n", beautify (buf) ); ++#else ++ printf("%s\n", beautify (buf) ); ++#endif + count ++ ; + } + } +@@ -474,7 +499,7 @@ + + mybanner() + { +-/* printf("\nDICO V %s (%s) - R.Cougnenc 1992\n\n", __Version__, MYOS);*/ ++ printf("\nDICO V %s (%s) - R.Cougnenc 1992\n\n", __Version__, MYOS); + } + /*--------------------------------------------------------------------------*/ + +@@ -526,7 +551,9 @@ + byte ville[50], code[6]; + byte *r = ville; + ++/* #ifndef __FreeBSD__ */ + *str = ToUpper ( *str ); /* Premiere lettre... */ ++/* #endif */ + + if( ! strchr( str, '\t') ) /* Cas du nom commun */ + { |