]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid warnings about file names in autoloads on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sun, 10 Sep 2017 14:52:41 +0000 (17:52 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 10 Sep 2017 14:52:41 +0000 (17:52 +0300)
* configure.ac (srcdir) [mingw32]: Downcase the drive letter, to
avoid warnings from find-file-noselect when making autoloads.  For
the details, see
http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00049.html.

configure.ac

index 8ffc7cfff3dd2a0621e70305aba0e824f5fe443b..ba6c5af79d4b5a56e635be2b820cc022a1070e38 100644 (file)
@@ -168,7 +168,9 @@ Defaulting to $host.])
       # format ("c:/foo/bar").
       srcdir=`cd "${srcdir}" && pwd -W`
       # 'eval' pacifies strict POSIX non-MinGW shells (Bug#18612).
-      eval 'srcdir="/${srcdir:0:1}${srcdir:2}"'
+      # We downcase the drive letter to avoid warnings when
+      # generating autoloads.
+      eval 'srcdir=/`echo ${srcdir:0:1} | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/`"${srcdir:2}"'
       ;;
   esac;;
 esac