X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fcanonicalize-whitespace;h=11b374d1eda63b7cece1d3f78d18ad9005f69cfa;hb=22a6702974b7d6ff4e8f2b3b7b5ff446fc632de0;hp=5c64e6927e8ce5d2b24a4e2a054a8b0ef577c88e;hpb=1af3faa2b79125b774c2182cab841ed7ee555bed;p=sbcl.git diff --git a/tools-for-build/canonicalize-whitespace b/tools-for-build/canonicalize-whitespace index 5c64e69..11b374d 100755 --- a/tools-for-build/canonicalize-whitespace +++ b/tools-for-build/canonicalize-whitespace @@ -5,5 +5,13 @@ # Convert tabs to spaces and delete trailing whitespace in files # which we can safely assume to be source files in appropriate languages. +if ! expand --version < $DEVNULL +then + # If we're building with MSYS on Windows GNU expand is not available, + # and what we get is Microsoft Expand, which is something quite different, + # so bail out. + exit +fi + tools-for-build/whitespacely-canonical-filenames \ | xargs tools-for-build/canonicalize-whitespace-1