Jean-Marc Lasgouttes wrote:
> - what is the intent of using "../share" in non-posix packagings? To
> make�things�work�when�the�packaging�was�actually�posix?�I�think�we
> should�rather�alow�people�to�use�--with-packaging=posix�on�osx�or
> win32,�when�they�actually�want�that.�The�nice�thing�about�it�is�that
> configure�will�set�the�makefile�variables�correctly.
Sorry, I don't follow you.
Following you other suggestions, I currently have:
// The locale directory relative to the LyX system directory.
string const relative_localedir()
{
string result;
#if defined (USE_WINDOWS_PACKAGING) || defined (USE_MACOSX_PACKAGING)
result = "locale/";
#else // Posix-like.
result = "../locale/";
#endif
return result;
}
// The system lyxdir is relative to the directory containing
// the LyX binary.
string const relative_system_lyxdir()
{
string result;
#if defined (USE_WINDOWS_PACKAGING) || defined (USE_MACOSX_PACKAGING)
result = "../Resources/";
#else // Posix-like.
result = "../share/";
#endif
return result;
}
--
Angus