Browse code

more fixes for mingw

Nat! authored on 07-09-2017 23:36:18
Showing 3 changed files
... ...
@@ -684,6 +684,15 @@ bootstrap_main()
684 684
 }
685 685
 
686 686
 
687
+#
688
+# leading backslash ? looks like we're getting called from
689
+# mingw via a .BAT or so
690
+#
691
+case "$PATH" in
692
+   '\\'*)
693
+      PATH="`tr '\\' '/' <<< "${PATH}"`"
694
+   ;;
695
+esac
687 696
 
688 697
 #
689 698
 # service both names
... ...
@@ -707,6 +716,8 @@ MULLE_EXECUTABLE_PID="$$"
707 716
 export MULLE_EXECUTABLE_PID
708 717
 
709 718
 
719
+
720
+
710 721
 bootstrap_init "$@" # needs params
711 722
 
712 723
 
... ...
@@ -31,6 +31,17 @@
31 31
 #
32 32
 VERSION=0.0
33 33
 
34
+#
35
+# leading backslash ? looks like we're getting called from
36
+# mingw via a .BAT or so
37
+
38
+case "$PATH" in
39
+   "\\*")
40
+      PATH="`tr '\\' '/' <<< "${PATH}"`"
41
+   ;;
42
+esac
43
+
44
+
34 45
 PATH="/usr/local/libexec/mulle-bootstrap:/usr/bin:$PATH"
35 46
 export PATH
36 47
 
... ...
@@ -433,11 +433,11 @@ add_path()
433 433
 
434 434
    [ -z "${PATH_SEPARATOR}" ] && fail "PATH_SEPARATOR is undefined"
435 435
 
436
-   case "${UNAME}" in
437
-      mingw)
438
-         path="`echo "${path}" | tr '/' '\\' 2> /dev/null`"
439
-      ;;
440
-   esac
436
+#   case "${UNAME}" in
437
+#      mingw)
438
+#         path="`echo "${path}" | tr '/' '\\' 2> /dev/null`"
439
+#      ;;
440
+#   esac
441 441
 
442 442
    if [ -z "${line}" ]
443 443
    then