File pgn-extract-set_eco.pgn_path.patch of Package pgn-extract
diff -Nur pgn-extract/argsfile.c new/argsfile.c
--- pgn-extract/argsfile.c 2021-01-27 12:22:02.000000000 +0100
+++ new/argsfile.c 2021-04-29 20:25:15.746494374 +0200
@@ -133,7 +133,7 @@
"-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, ...",
diff -Nur pgn-extract/help.html new/help.html
--- pgn-extract/help.html 2021-01-27 12:22:02.000000000 +0100
+++ new/help.html 2021-04-29 20:27:01.234728770 +0200
@@ -211,7 +211,7 @@
<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, ...
@@ -1501,7 +1501,7 @@
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.
diff -Nur pgn-extract/main.c new/main.c
--- pgn-extract/main.c 2021-01-03 14:43:15.000000000 +0100
+++ new/main.c 2021-04-29 20:27:25.909847943 +0200
@@ -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