-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean.sh
More file actions
48 lines (44 loc) · 695 Bytes
/
Copy pathclean.sh
File metadata and controls
48 lines (44 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env sh
cxxwin_clean_msystem_set_lower_case ()
{
case "${MSYSTEM}" in
MINGW32)
_msystem="mingw32"
export _msystem
;;
MINGW64)
_msystem="mingw64"
export _msystem
;;
CLANG32)
_msystem="clang32"
export _msystem
;;
CLANG64)
_msystem="clang64"
export _msystem
;;
CLANGARM64)
_msystem="clangarm64"
export _msystem
;;
UCRT64)
_msystem="ucrt64"
export _msystem
;;
*)
_msystem="usr"
export _msystem
;;
esac
}
cxxwin_clean_output_dir ()
{
rm -rvf ./out/${_msystem}
}
cxxwin_clean_msystem_set_lower_case
cxxwin_clean_output_dir
unset \
_msystem \
cxxwin_clean_msystem_set_lower_case \
cxxwin_clean_output_dir