Browse code

more fixes for mingw

Nat! authored on 08-09-2017 11:33:03
Showing 3 changed files
... ...
@@ -685,6 +685,15 @@ bootstrap_main()
685 685
 }
686 686
 
687 687
 
688
+#
689
+# leading backslash ? looks like we're getting called from
690
+# mingw via a .BAT or so
691
+#
692
+case "$PATH" in
693
+   '\\'*)
694
+      PATH="`tr '\\' '/' <<< "${PATH}"`"
695
+   ;;
696
+esac
688 697
 
689 698
 #
690 699
 # service both names
... ...
@@ -708,6 +717,8 @@ MULLE_EXECUTABLE_PID="$$"
708 717
 export MULLE_EXECUTABLE_PID
709 718
 
710 719
 
720
+
721
+
711 722
 bootstrap_init "$@" # needs params
712 723
 
713 724
 
... ...
@@ -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