Fix contrib building on mingw.
authorStas Boukarev <stassats@gmail.com>
Wed, 6 Nov 2013 17:11:53 +0000 (21:11 +0400)
committerStas Boukarev <stassats@gmail.com>
Wed, 6 Nov 2013 17:11:53 +0000 (21:11 +0400)
The current directory has to be found out using pwd -W, to avoid any
conversion into unix-looking pathnames.

NEWS
sbcl-pwd.sh

diff --git a/NEWS b/NEWS
index 9510e5b..9ec0f85 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ changes relative to sbcl-1.1.13:
     undefined-function warnings in subsequent forms. (lp#503095)
   * bug fix: EQUALP now compares correctly structures with raw slots larger
     than a single word.
+  * bug fix: contribs couldn't be built on Windows with MinGW.
 
 changes in sbcl-1.1.13 relative to sbcl-1.1.12:
   * optimization: better distribution of SXHASH over small conses of related
index dcf677b..487a5d5 100644 (file)
@@ -4,10 +4,13 @@
 # This ensures that SBCL_PWD is a path understandable to SBCL.
 
 sbcl_pwd() {
-    if [ "${OSTYPE:-}" = "cygwin" ] ; then
-       SBCL_PWD="`cygpath -m \"$(pwd)\"`"
-    else
-       SBCL_PWD="`pwd`"
-    fi
+    case $OSTYPE in
+        cygwin)
+            SBCL_PWD="`cygpath -m \"$(pwd)\"`" ;;
+        msys)
+            SBCL_PWD="`pwd -W`" ;;
+        *)
+            SBCL_PWD="`pwd`" ;;
+    esac
     export SBCL_PWD
 }