2008-06-04 Xinliang David Li <davidxl@google.com>
[official-gcc.git] / fixincludes / mkfixinc.sh
blob6d87b5e1182e49f15c474902d3642cf0723afd5f
1 #! /bin/sh
3 if [ $# -ne 1 ]
4 then
5 echo "Usage: $0 <target-mach-triplet>"
6 exit 1
7 fi
9 machine=$1
10 target=fixinc.sh
12 # Check for special fix rules for particular targets
13 case $machine in
14 alpha*-dec-*vms* | \
15 arm-semi-aof | \
16 hppa1.1-*-osf* | \
17 hppa1.1-*-bsd* | \
18 i370-*-openedition | \
19 i?86-moss-msdos* | \
20 i?86-*-moss* | \
21 i?86-*-pe | \
22 i?86-*-cygwin* | \
23 i?86-*-mingw32* | \
24 x86_64-*-mingw32* | \
25 i?86-*-uwin* | \
26 i?86-*-interix* | \
27 *-*-vxworks* | \
28 powerpc-*-eabiaix* | \
29 powerpc-*-eabisim* | \
30 powerpc-*-eabi* | \
31 powerpc-*-rtems* | \
32 powerpcle-*-eabisim* | \
33 powerpcle-*-eabi* )
34 # IF there is no include fixing,
35 # THEN create a no-op fixer and exit
36 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
40 cat < ${srcdir}/fixinc.in > ${target} || exit 1
42 esac
43 chmod 755 ${target}