]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/main.cc
release: 0.0.77.jcn1
[lilypond.git] / lily / main.cc
index 22f226d182bf1901300cbdc41d9bc1633ba8b0e3..a87d9b28852241a821362f4e8bec1608094afa42 100644 (file)
@@ -105,12 +105,14 @@ static File_path path;
 void
 do_one_file(String init_str, String file_str)
 {
-    if ( "" == path.find( init_str ) )
+    if ( init_str != "" && "" == path.find( init_str ) ) {
        error ( "Can not find `" + init_str +"'");
-
-    if ( path.find( file_str ) == "" )
+       return ;
+    }
+    if ( file_str!= "" && path.find( file_str ) == "" ) {
        error ( "Can not find `" + file_str + "'");
-       
+       return ;
+    }
     
     Sources sources;
     source_l_g = &sources; 
@@ -142,7 +144,7 @@ main (int argc, char **argv)
 
     Getopt_long oparser(argc, argv,theopts);
     cout << get_version_str() << endl;
-    String init_str("symbol.ini");
+    String init_str("symbol.ly");
     
     while (Long_option_init * opt = oparser()) {
        switch ( opt->shortname){