]> git.ipfire.org Git - thirdparty/gcc.git/blame - fixincludes/mkfixinc.sh
MAINTAINERS (crx port, [...]): Remove.
[thirdparty/gcc.git] / fixincludes / mkfixinc.sh
CommitLineData
71b5d516
PB
1#! /bin/sh
2
53c7ffe7 3if [ $# -ne 1 ]
71b5d516 4then
53c7ffe7 5 echo "Usage: $0 <target-mach-triplet>"
71b5d516
PB
6 exit 1
7fi
8
53c7ffe7 9machine=$1
71b5d516
PB
10target=fixinc.sh
11
12# Check for special fix rules for particular targets
13case $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 ;;
33esac
34chmod 755 ${target}