bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI, bootstrap: remove dangling m4/*.m4 symlinks


From: Jim Meyering
Subject: FYI, bootstrap: remove dangling m4/*.m4 symlinks
Date: Sun, 02 Mar 2008 17:18:29 +0100

I've just committed this:

        bootstrap: sync from coreutils again
        * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.

diff --git a/build-aux/bootstrap b/build-aux/bootstrap
index d68d3f4..cf6b73b 100755
--- a/build-aux/bootstrap
+++ b/build-aux/bootstrap
@@ -546,6 +546,16 @@ if test -f $mam_template; then
   done
 fi

+# Remove any dangling symlink matching "*.m4" in the gnulib-populated
+# $m4_base directory, since such a file would cause aclocal to fail.
+# The following requires GNU find 4.2.3 or newer.  Considering the usual
+# portability constraints of this script, that may seem a very demanding
+# requirement, but it should be ok.  Ignore any failure, which is fine,
+# since this is only a convenience to help developers avoid the relatively
+# unusual case in which a symlinked-to .m4 file is git-removed from gnulib
+# between successive runs of this script.
+find "$m4_base" -name '*.m4' -depth -type l -xtype l -delete > /dev/null 2>&1
+
 # Reconfigure, getting other files.

 for command in \
--
1.5.4.3.366.g9f9b62




reply via email to

[Prev in Thread] Current Thread [Next in Thread]