#endif
}
-int
-main_prog (int argc, char **argv)
+
+void
+setup_paths ()
{
- guile_init ();
-
// facilitate binary distributions
char const *env_lily = getenv ("LILYPONDPREFIX");
String prefix_directory;
textdomain (name.ch_C ());
#endif
- identify ();
- call_constructors ();
- debug_init (); // should be first
-
global_path.add ("");
// must override (come before) "/usr/local/share/lilypond"!
char const *env_sz = getenv ("LILYINCLUDE");
global_path.add (String (DIR_DATADIR) + "/ly/");
global_path.add (String (DIR_DATADIR) + "/afm/");
+}
- Getopt_long oparser (argc, argv,theopts);
- String init_str;
+
+int
+main_prog (int argc, char **argv)
+{
+ guile_init ();
+ identify ();
+ call_constructors ();
+ debug_init (); // should be first
+
+ setup_paths ();
+
+ String init_str;
String outname_str;
+
+ Getopt_long oparser (argc, argv,theopts);
while (Long_option_init const * opt = oparser ())
{
switch (opt->shortname)