1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Add the evolver examples to the default path.
Index: evolver/src/utility.c
===================================================================
--- evolver.orig/src/utility.c 2010-06-24 19:01:28.000000000 -0400
+++ evolver/src/utility.c 2010-06-24 19:03:08.000000000 -0400
@@ -3195,6 +3195,20 @@
else env += len+1;
}
+ /* Try doc and doc/examples directories */
+ if (fd == NULL)
+ {
+ strncpy (path, "/usr/share/doc/evolver-doc/", 27);
+ strncpy (path+27, name, sizeof(path)-27-2);
+ fd = fopen (path, "r");
+ }
+ if (fd == NULL)
+ {
+ strncpy (path, "/usr/share/doc/evolver-doc/examples/", 36);
+ strncpy (path+36, name, sizeof(path)-36-2);
+ fd = fopen (path, "r");
+ }
+
/* try .fe extension */
if ( fd == NULL)
{
|