Manually update entries for the Revert Revert commits.
[official-gcc.git] / fixincludes / mkfixinc.sh
blob7112f4dcd64b8351343f7af343271d1717bd02e2
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 *-mingw32* | \
16 powerpc-*-eabisim* | \
17 powerpc-*-eabi* | \
18 powerpc-*-rtems* | \
19 powerpcle-*-eabisim* | \
20 powerpcle-*-eabi* | \
21 *-*-vxworks7* | \
22 *-musl* )
23 # IF there is no include fixing,
24 # THEN create a no-op fixer and exit
25 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
29 cat < ${srcdir}/fixinc.in > ${target} || exit 1
31 esac
32 chmod 755 ${target}