]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/main.cc (setup_paths): Prepend dirs to search path, instead
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 21 Aug 2002 21:20:23 +0000 (21:20 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 21 Aug 2002 21:20:23 +0000 (21:20 +0000)
of appending.  Fixes build when typical LilyPond 1.4 leftovers clutter
the system.

* flower/include/file-path.hh (prepend): New function.

ChangeLog
flower/include/file-path.hh
lily/main.cc

index f298da0db79a2b02099de1fa10333fec72157541..1c3b8fadeac30e0baac8f68795fa90b84ab81742 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2002-08-21  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+       * lily/main.cc (setup_paths): Prepend dirs to search path, instead
+       of appending.  Fixes build when typical LilyPond 1.4 leftovers clutter
+       the system.
+
+       * flower/include/file-path.hh (prepend): New function.
+
 2002-08-20  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
        * Documentation/misc/ChangeLog-1.5: move 1.5 ChangeLog to misc/
index b3bf47d5aa8e16344c315d202bd0c343ad4a57c9..2055d08f011c35415ce7f757fbfcda7d31587cd8 100644 (file)
@@ -39,6 +39,7 @@ public:
   String find (String nm) const;
 
   Array<String>::push;
+  void prepend (String str) { Array<String>::insert (str, 0); }
   String string ()const;
   bool try_add (String str);
   void add (String);
index 3375142449239b40e8baffc8f95c8ef63c1f3ef1..dd856b5a810d78b748a851e8fde2f1374409c208 100644 (file)
@@ -263,7 +263,7 @@ setup_paths ()
     for (char **s = suffixes; *s; s++)
       {
        String p = prefix_directory[i] + to_string ('/') + String (*s);
-       global_path.add (p);
+       global_path.prepend (p);
        
 #if !KPATHSEA
        /* Urg: GNU make's $ (word) index starts at 1 */