OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [fixincludes/] [mkfixinc.sh] - Blame information for rev 299

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.