2005-12-20 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/main.cc (setup_paths): fix: LILYPOND_RELOCATE_PREFIX.
+ (main): read LILYPOND_VERBOSE as the first thing.
+
* stepmake/aclocal.m4: remove INSTALL variable.
* GNUmakefile.in ($(tree-share-prefix)/mf-link-tree link-mf-tree):
{
prefix_directory = LILYPOND_DATADIR;
- if (relocate_binary)
+
+ if (relocate_binary
+ && getenv ("LILYPOND_RELOCATE_PREFIX"))
+ {
+ String prefix = getenv ("LILYPOND_RELOCATE_PREFIX");
+ /*
+ fixme: need different sep for mingw?
+ */
+ set_relocation (prefix + "/bin", prefix);
+ }
+ else if (relocate_binary)
{
- if (getenv ("LILYPOND_VERBOSE"))
- be_verbose_global = true;
-
#if defined (__CYGWIN__) || defined (__MINGW32__)
String s = argv0;
s.substitute ('\\', '/');
/* if name contains slashes, we should not look in $PATH */
String argv0_abs;
- if (getenv ("LILYPOND_RELOCATE_PREFIX"))
- argv0_abs = getenv ("LILYPOND_RELOCATE_PREFIX");
- else if (argv0[0] == '/')
+ if (argv0[0] == '/')
argv0_abs = argv0_abs;
else if (String (argv0).index ('/') > 0)
argv0_abs = get_working_directory () + "/" + String (argv0);
int
main (int argc, char **argv)
{
+ if (getenv ("LILYPOND_VERBOSE"))
+ be_verbose_global = true;
+
setup_localisation ();
parse_argv (argc, argv);
if (isatty (STDIN_FILENO))