* Oliver Schroeder -- Thursday 02 October 2008:
> No, it's from the "CVS Resources" page on flightgear.org.
> 
> "cvs -d :pserver:[EMAIL PROTECTED]:/var/cvs/FlightGear-0.9
> co data" creates the "data" subdir.

Yes, but it doesn't say that you should set FG_ROOT to the directory
that contains a subdirectory called "data/". Instead you should set it
to the data directory itself. This should be the path to the version
file: $FG_ROOT/version (by default that shoud be 
/usr/local/share/FlightGear/version)

That fgfs contains a hack that automatically adds "/data" if
$FG_ROOT/data/ exists is a different matter. This sort of tolerance
has no advantages, it is actually a *limitation* for all other
applications that need to access FG_ROOT. They now have also
to include the hack, or risk not working everywhere.

I've added a warning for the case where someone sets FG_ROOT
the bad way. And next time someone comes along with that problem,
I'll upgrade it to alert, and then to segfault.  ;-)



> So I always assumed that having the data subdir is the way it
> should be. 

Understandable. Time to remove this ambiguity.

m.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to