]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtoolize.m4sh (func_copy_some_files): IFS needs to be set to
authorGary V. Vaughan <gary@gnu.org>
Thu, 24 Mar 2005 13:05:03 +0000 (13:05 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 24 Mar 2005 13:05:03 +0000 (13:05 +0000)
path delimiter for all inner loop iterations.
Once a matching file has been copied, no need to keep searching
the path for another -- move on to the next file!

ChangeLog
libtoolize.m4sh

index a2df16fd4d3ac115fc5dbd8328106efde0575984..d6a7f94c7f222e1a6ec074a366b71c41b1fa4665 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2005-03-24  Gary V. Vaughan  <gary@gnu.org>
 
+       * libtoolize.m4sh (func_copy_some_files): IFS needs to be set to
+       path delimiter for all inner loop iterations.
+       Once a matching file has been copied, no need to keep searching
+       the path for another -- move on to the next file!
+
        * libtoolize.m4sh: For verbose mode, explain why macro files are
        not installed without an AC_CONFIG_MACRO_DIR declaration.
 
index cd82df404fb40eb26b043bdb40d31d138e16059a..86d81f3a7f9d304c1ab92c045634f1c0331ea61a 100644 (file)
@@ -363,6 +363,7 @@ func_copy_some_files ()
     my_save_IFS="$IFS"
     IFS=:
     for my_filename in $my_srcfile_spec; do
+      IFS=:
       for my_srcdir in $my_srcdirs; do
         IFS="$my_save_IFS"
         if test -f "$my_srcdir/$my_filename"; then
@@ -379,6 +380,7 @@ func_copy_some_files ()
         fi
 
         $my_copy_cb "$my_filename" "$my_srcdir" "$my_destdir"
+       break
       done
       IFS="$my_save_IFS"
     done