This commit was manufactured by cvs2svn to create branch 'gomp-branch'.
[official-gcc.git] / gcc / mkfixinc.sh
blob509aa357ee046dbeec2e20bffaf640a907bc2d18
1 #! /bin/sh
3 if [ $# -ne 2 ]
4 then
5 echo "Usage: $0 <build-mach-triplet> <target-mach-triplet>"
6 exit 1
7 fi
9 build=$1
10 machine=$2
11 target=fixinc.sh
13 # Check for special fix rules for particular targets
14 case $machine in
15 alpha*-dec-*vms* | \
16 arm-semi-aof | \
17 hppa1.1-*-osf* | \
18 hppa1.1-*-bsd* | \
19 i370-*-openedition | \
20 i?86-moss-msdos* | \
21 i?86-*-moss* | \
22 i?86-*-pe | \
23 i?86-*-cygwin* | \
24 i?86-*-mingw32* | \
25 i?86-*-uwin* | \
26 i?86-*-interix* | \
27 powerpc-*-eabiaix* | \
28 powerpc-*-eabisim* | \
29 powerpc-*-eabi* | \
30 powerpc-*-rtems* | \
31 powerpcle-*-eabisim* | \
32 powerpcle-*-eabi* )
33 # IF there is no include fixing,
34 # THEN create a no-op fixer and exit
35 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
39 ../${build_subdir}/fixincludes/fixincl -v < /dev/null
40 sed "s,@FIXINCL@,\${ORIGDIR}/../${build_subdir}/fixincludes/fixincl,g" \
41 ${srcdir}/fixinc.in > ${target}
43 esac
44 chmod 755 ${target}