File tree 2 files changed +6
-14
lines changed
2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 0b63512f4cb0aca1579b110d9104eeed4918a6eb
2
+ refs/heads/master: 9b617dab3c6a563d7c31dabcd0fba5c6342c09c1
Original file line number Diff line number Diff line change @@ -77,24 +77,16 @@ need_cmd cp
77
77
need_cmd find
78
78
need_cmd uname
79
79
need_cmd date
80
+ need_cmd tr
80
81
81
82
msg " inspecting environment"
82
83
83
84
CFG_OSTYPE=$( uname -s)
84
85
CFG_CPUTYPE=$( uname -m)
85
86
86
- case $CFG_OSTYPE in
87
-
88
- MINGW* )
89
- CFG_SRC_DIR=${0% ${0##* \\ } }
90
- CFG_BUILD_DIR=$PWD
91
- ;;
92
-
93
- * )
94
- CFG_SRC_DIR=${0% ${0##*/ } }
95
- CFG_BUILD_DIR=$PWD
96
- ;;
97
- esac
87
+ CFG_SELF=$( echo $0 | tr ' \' ' /' )
88
+ CFG_SRC_DIR=${CFG_SELF% ${CFG_SELF##*/ } }
89
+ CFG_BUILD_DIR=$( echo $PWD | tr ' \' ' /' )
98
90
99
91
msg " recreating config.mk"
100
92
echo ' ' > config.mk
@@ -180,7 +172,7 @@ putvar CFG_LLVM_LDFLAGS
180
172
putvar CFG_LLVM_LIBS
181
173
182
174
# Munge any paths that appear in config.mk back to posix-y
183
- perl -i.bak -p -e ' s@ ([a-zA-Z]):\\ @ /\1/@go;' \
175
+ perl -i.bak -p -e ' s@ ([a-zA-Z]):[/\\] @ /\1/@go;' \
184
176
-e ' s@\\@/@go;' config.mk
185
177
rm -f config.mk.bak
186
178
You can’t perform that action at this time.
0 commit comments