]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtoolize.m4sh (func_copy_all_files)
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 4 Dec 2005 14:37:39 +0000 (14:37 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 4 Dec 2005 14:37:39 +0000 (14:37 +0000)
(glob_exclude_pkgaux_files): Removed, since unused.

ChangeLog
libtoolize.m4sh

index 01df1efcd7eff29c636fc187d6521d160643a58a..431648b66e7fc6400bf42909d03a8da455df923f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-12-04  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
 
+       * libtoolize.m4sh (func_copy_all_files)
+       (glob_exclude_pkgaux_files): Removed, since unused.
+
        * libtoolize.m4sh (func_copy_cb, func_copy_some_files)
        (func_serial_update, func_keyword_update): Fail immediately
        if some file we may install does not exist.
index 5c097da6064265ca58c9f0a480c6c105654a5a56..41ddeb8c5c8a67722f083b1df9da829661132b9b 100644 (file)
@@ -265,66 +265,6 @@ func_copy_cb ()
 }
 
 
-# func_copy_all_files [-r] srcdir destdir [glob_exclude] [copy_cb=func_copy_cb]
-# For each file in SRCDIR, then try to copy the file to DESTDIR by calling
-# COPY_CB with the src and dest files.  With the `-r' option, recurse into
-# subdirectories of srcdir too.  If GLOB_EXCLUDE is given, exclude any
-# matching filenames from the copy.  If COPY_CB is passed, then the check
-# for overwriting without opt_force is the callbacks responsibility:  This
-# allows using callbacks like func_serial_update, which perform their own
-# checks to decide whether to overwrite the dest file.
-func_copy_all_files ()
-{
-    $opt_debug
-    my_opt_recurse=false
-    if test "X$1" = X-r; then
-      my_opt_recurse=:
-      shift
-    fi
-
-    my_srcdir="$1"
-    my_destdir="$2"
-    my_glob_exclude="$3"
-    my_copy_cb="${4-func_copy_cb}"
-
-    my_srcfiles=
-    my_basedir="$my_srcdir"
-    my_srcdirs="$my_srcdir"
-    my_save_IFS="$IFS"
-    IFS=:
-    while test -n "$my_srcdirs"; do
-
-      IFS="$my_save_IFS"
-      my_srcdir=`$ECHO "X$my_srcdirs" | $Xsed -e 's,:.*,,g'`
-      my_srcdirs=`$ECHO "X$my_srcdirs" | $Xsed -e 's,:*[[^:]][[^:]]*:*,,'`
-
-      for my_filename in `cd "$my_srcdir" && ls`; do
-
-        # ignore excluded filenames
-        if test -n "$my_glob_exclude"; then
-         my_cont=false
-         eval 'case $my_filename in '$my_glob_exclude') my_cont=: ;; esac'
-         $my_cont && continue
-        fi
-
-       # Add to the appropriate list
-       if test -f "$my_srcdir/$my_filename"; then
-         my_srcfile=`$ECHO "X$my_srcdir/$my_filename" | $Xsed \
-             -e "s,^$my_basedir/*,,"`
-         my_srcfiles="$my_srcfiles${my_srcfiles:+:}$my_srcfile"
-       elif $my_opt_recurse && test -d "$my_srcdir/$my_filename"; then
-         my_srcdirs="$my_srcdirs${my_srcdirs:+:}$my_srcdir/$my_filename"
-       fi
-
-      done
-    done
-    IFS="$my_save_IFS"
-
-    func_copy_some_files "$my_srcfiles" "$my_basedir" \
-      "$my_destdir" "$my_copy_cb"
-}
-
-
 # func_copy_some_files srcfile_spec srcdir destdir [copy_cb=func_copy_cb]
 # Call COPY_CB for each regular file in SRCDIR named by the ':' delimited
 # names in SRCFILE_SPEC.  The odd calling convention is needed to allow
@@ -1079,8 +1019,6 @@ func_nonemptydir_p ()
   # libtool.m4 and ltdl.m4 are handled specially below
   func_massage_aclocal_DATA 'libtool.m4|ltdl.m4'
 
-  glob_exclude_pkgaux_files='config.guess|config.sub|install-sh|ltmain.sh'
-
   # Copy all the files from installed libltdl to this project, if the
   # user specified `--ltdl'.
   if $opt_ltdl; then