[airstrike] Strange things when "fixing" (?) things & install target
sven-airstrike at velt.de
Tue Feb 4 03:40:53 EST 2003
Am 2003-02-04, tippselte Eero Tamminen:
> > | -#define ROOT_CONFIG_FILE "airstrikerc"
> > | +#define ROOT_CONFIG_FILE "/etc/airstrikerc"
> I think default game configuration file should be under share/...,
> not in /etc/
As it's a configuration file it _has_ to go to /etc. At least for a
> (and the one where the info is saved from game
> would of course be ~/.airstrikerc). So the order of checking
> for the configuration file would be:
> - home dir
> - current dir
> - installation path for 'share' files
Hmm, I think the global configuration file has to be read first (think
of a default configuration installed by root) and _then_ the user's
I think current dir is a bad idea. Don't ask me why, it's a feeling ;-)
> > | # The path where the program looks for its data files
> > | -datapath "data"
> > | +datapath "/usr/share/games/airstrike/data"
> As default things compiled from sources should
> be installed under /usr/local/. Easiest would be if
> the Makefile install target would pipe the configuration
> file through 'sed' which converts DESTDIR strings
> in config file to point to directory set in the Makefile.
No problem with that for a default install. It should all go under
/usr/local/airstrike so you don't have problems
As debian policy is very strict _I_ have to put it in this path.
Meet me at: 2003-02-06 Schwabach: Stammtisch LUSC (http://lusc.de/)
2003-05-29/01 Felsberg: LugCamp 2003 (Schweiz)
*** [LUSC] Linux User Schwabach - Stammtisch: 1. & 3. Do - http://lusc.de ***
"Wie ist das passiert?" - "Keine Ahnung, hab' einfach auf 'Weiter' geklickt"
More information about the airstrike