X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fcanonicalize-whitespace;h=c487a22aa5031bcadb0df14a339b8ce850767b1c;hb=3eb0a28fe6a7912d6ff2b97221325c0e3bfc5703;hp=5c64e6927e8ce5d2b24a4e2a054a8b0ef577c88e;hpb=84e9f00b07d3d5ce4a5a5d30bcdf94c0bd7f2f0f;p=sbcl.git diff --git a/tools-for-build/canonicalize-whitespace b/tools-for-build/canonicalize-whitespace index 5c64e69..c487a22 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 +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