File pgn-extract-set_eco.pgn_path.patch of Package pgn-extract
Index: pgn-extract/argsfile.c
===================================================================
--- pgn-extract.orig/argsfile.c
+++ pgn-extract/argsfile.c
@@ -136,7 +136,7 @@ usage_and_exit(void)
"-D -- don't output duplicate games.",
"-eECO_file -- perform ECO classification of games. The optional",
" ECO_file should contain a PGN format list of ECO lines",
- " Default is to use eco.pgn from the current directory.",
+ " Default is to use /usr/share/pgn-extract/eco.pgn from the current directory.",
"-E[123 etc.] -- split output into separate files according to ECO.",
" E1 : Produce files from ECO letter, A.pgn, B.pgn, ...",
" E2 : Produce files from ECO letter and first digit, A0.pgn, ...",
Index: pgn-extract/help.html
===================================================================
--- pgn-extract.orig/help.html
+++ pgn-extract/help.html
@@ -253,7 +253,7 @@ of this page before attempting to use pg
<li>-D - don't output duplicate extracted game scores.
<li>-eECO_file - perform ECO classification of games. The optional
ECO_file should contain a PGN format list of ECO lines
- Default is to use eco.pgn from the current directory.
+ Default is to use /usr/share/pgn-extract/eco.pgn from the current directory.
<li>-E[123 etc.] - split output into separate files according to ECO.
<ul>
<li>E1 : Produce files from ECO letter, A.pgn, B.pgn, ...
@@ -1696,7 +1696,7 @@ believe that this was put together by Ew
others, to whom appropriate thanks is due. The -e flag requests
pgn-extract to add/replace ECO classifications in the games it outputs.
This is done by firstly reading a file of ECO lines in PGN format
-(eco.pgn in the current directory, by default) and building a table of
+(/usr/share/pgn-extract/eco.pgn in the current directory, by default) and building a table of
resulting positions. As the games are then read they are looked up in
the table to find a classification. The deepest match is found.
A match is allowed within six half moves of the length of the ECO line.
Index: pgn-extract/main.c
===================================================================
--- pgn-extract.orig/main.c
+++ pgn-extract/main.c
@@ -48,7 +48,7 @@
* a file of ECO classificiations.
*/
#ifndef DEFAULT_ECO_FILE
-#define DEFAULT_ECO_FILE "eco.pgn"
+#define DEFAULT_ECO_FILE "/usr/share/pgn-extract/eco.pgn"
#endif
/* This structure holds details of the program state