]>
Commit | Line | Data |
---|---|---|
71b5d516 PB |
1 | #! /bin/sh |
2 | ||
53c7ffe7 | 3 | if [ $# -ne 1 ] |
71b5d516 | 4 | then |
53c7ffe7 | 5 | echo "Usage: $0 <target-mach-triplet>" |
71b5d516 PB |
6 | exit 1 |
7 | fi | |
8 | ||
53c7ffe7 | 9 | machine=$1 |
71b5d516 PB |
10 | target=fixinc.sh |
11 | ||
12 | # Check for special fix rules for particular targets | |
13 | case $machine in | |
71b5d516 | 14 | i?86-*-cygwin* | \ |
f48aa01a L |
15 | i?86-*-mingw32* | \ |
16 | x86_64-*-mingw32* | \ | |
71b5d516 PB |
17 | powerpc-*-eabisim* | \ |
18 | powerpc-*-eabi* | \ | |
19 | powerpc-*-rtems* | \ | |
20 | powerpcle-*-eabisim* | \ | |
218213df | 21 | powerpcle-*-eabi* | \ |
0a649b83 | 22 | *-*-vxworks7* | \ |
218213df | 23 | *-musl* ) |
71b5d516 PB |
24 | # IF there is no include fixing, |
25 | # THEN create a no-op fixer and exit | |
26 | (echo "#! /bin/sh" ; echo "exit 0" ) > ${target} | |
27 | ;; | |
28 | ||
29 | *) | |
b2cfdb12 | 30 | cat < ${srcdir}/fixinc.in > ${target} || exit 1 |
71b5d516 PB |
31 | ;; |
32 | esac | |
33 | chmod 755 ${target} |