]>
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 | |
14 | alpha*-dec-*vms* | \ | |
71b5d516 | 15 | i?86-*-cygwin* | \ |
f48aa01a L |
16 | i?86-*-mingw32* | \ |
17 | x86_64-*-mingw32* | \ | |
71b5d516 | 18 | i?86-*-interix* | \ |
da32da74 | 19 | *-*-vxworks* | \ |
71b5d516 PB |
20 | powerpc-*-eabisim* | \ |
21 | powerpc-*-eabi* | \ | |
22 | powerpc-*-rtems* | \ | |
23 | powerpcle-*-eabisim* | \ | |
24 | powerpcle-*-eabi* ) | |
25 | # IF there is no include fixing, | |
26 | # THEN create a no-op fixer and exit | |
27 | (echo "#! /bin/sh" ; echo "exit 0" ) > ${target} | |
28 | ;; | |
29 | ||
30 | *) | |
b2cfdb12 | 31 | cat < ${srcdir}/fixinc.in > ${target} || exit 1 |
71b5d516 PB |
32 | ;; |
33 | esac | |
34 | chmod 755 ${target} |