1#! /bin/sh 2 3if [ $# -ne 1 ] 4then 5 echo "Usage: $0 <target-mach-triplet>" 6 exit 1 7fi 8 9machine=$1 10target=fixinc.sh 11 12# Check for special fix rules for particular targets 13case $machine in 14 i?86-*-cygwin* | \ 15 i?86-*-mingw32* | \ 16 x86_64-*-mingw32* | \ 17 powerpc-*-eabisim* | \ 18 powerpc-*-eabi* | \ 19 powerpc-*-rtems* | \ 20 powerpcle-*-eabisim* | \ 21 powerpcle-*-eabi* | \ 22 *-*-vxworks7* | \ 23 *-musl* ) 24 # IF there is no include fixing, 25 # THEN create a no-op fixer and exit 26 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target} 27 ;; 28 29 *) 30 cat < ${srcdir}/fixinc.in > ${target} || exit 1 31 ;; 32esac 33chmod 755 ${target} 34