Merge from trunk: 215733-215743
[official-gcc.git] / gcc-4_7-integration / fixincludes / mkfixinc.sh
blob89e8ab7d5f2b96a4a62d5eb2cbf5a7bf01525330
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 i?86-*-cygwin* | \
15 i?86-*-mingw32* | \
16 x86_64-*-mingw32* | \
17 i?86-*-interix* | \
18 *-*-vxworks* | \
19 powerpc-*-eabisim* | \
20 powerpc-*-eabi* | \
21 powerpc-*-rtems* | \
22 powerpcle-*-eabisim* | \
23 powerpcle-*-eabi* )
24 # IF there is no include fixing,
25 # THEN create a no-op fixer and exit
26 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
30 cat < ${srcdir}/fixinc.in > ${target} || exit 1
32 esac
33 chmod 755 ${target}