projects
/
profile
/
ivi
/
syslinux.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' into fsc
[profile/ivi/syslinux.git]
/
win32
/
find-mingw.sh
1
#!/bin/sh
2
3
cc="$1"
4
5
for prefix in \
6
mingw- \
7
i386-pc-mingw32- \
8
i486-pc-mingw32- \
9
i586-pc-mingw32- \
10
i686-pc-mingw32- \
11
i386-pc-mingw32msvc- \
12
i486-pc-mingw32msvc- \
13
i586-pc-mingw32msvc- \
14
i686-pc-mingw32msvc- \
15
i386-mingw32- \
16
i486-mingw32- \
17
i586-mingw32- \
18
i686-mingw32- \
19
i386-mingw32msvc- \
20
i486-mingw32msvc- \
21
i586-mingw32msvc- \
22
i686-mingw32msvc-; do
23
if "${prefix}${cc}" -v > /dev/null 2>&1; then
24
echo "$prefix"
25
exit 0
26
fi
27
done
28
29
# No prefix, no idea what to do now...
30
echo missing-
31
exit 1