aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorBruce Korb <korbb@gcc.gnu.org>1998-05-28 09:24:08 +0000
committerBruce Korb <korbb@gcc.gnu.org>1998-05-28 09:24:08 +0000
commit6efa7eb6ce6c2e9fc786890307d04de10ea63a5a (patch)
treee7e8ffef4738be636a8ff5d82f0f0a2b6aa2a1f9 /contrib
parent4c184c2c88c78ec161c71c723695d2af5347f535 (diff)
downloadgcc-6efa7eb6ce6c2e9fc786890307d04de10ea63a5a.zip
gcc-6efa7eb6ce6c2e9fc786890307d04de10ea63a5a.tar.gz
gcc-6efa7eb6ce6c2e9fc786890307d04de10ea63a5a.tar.bz2
finally, the script to install the fixincludes
From-SVN: r20119
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fixinc/mkfixinc.sh113
1 files changed, 113 insertions, 0 deletions
diff --git a/contrib/fixinc/mkfixinc.sh b/contrib/fixinc/mkfixinc.sh
new file mode 100755
index 0000000..4045686
--- /dev/null
+++ b/contrib/fixinc/mkfixinc.sh
@@ -0,0 +1,113 @@
+#! /bin/sh
+
+machine=$1
+destdir=$2
+
+# *-*-linux-* | \
+
+case $machine in
+ alpha*-dec-vms* | \
+ arm-semi-aout | \
+ armel-semi-aout | \
+ arm-semi-aof | \
+ armel-semi-aof | \
+ c1-convex-* | \
+ c2-convex-* | \
+ c32-convex-* | \
+ c34-convex-* | \
+ c38-convex-* | \
+ hppa1.[01]-*-osf* | \
+ hppa1.[01]-*-bsd* | \
+ hppa*-*-lites* | \
+ i[34567]86-moss-msdos* | \
+ i[34567]86-*-moss* | \
+ i[34567]86-*-sysv5* | \
+ i[34567]86-*-osf1* | \
+ i[34567]86-*-pe | \
+ i[34567]86-*-cygwin32 | \
+ i[34567]86-*-mingw32* | \
+ mips-sgi-irix5cross64 | \
+ mips-dec-bsd* | \
+ powerpc-*-eabi* | \
+ powerpc-*-rtems* | \
+ powerpcle-*-eabi* | \
+ powerpcle-*-winnt* | \
+ powerpcle-*-pe | \
+ powerpcle-*-cygwin32 | \
+ *-*-gnu* )
+ echo fixinc for $machine disabled
+ fixincludes=
+ ;;
+
+ i[34567]86-dg-dgux* | \
+ m88k-dg-dgux*)
+ fixincludes=fixinc.dgux
+ ;;
+
+ mips-sgi-irix[56]* )
+ fixincludes=fixinc.irix
+ ;;
+
+ i[34567]86-sequent-ptx1* | \
+ i[34567]86-sequent-ptx2* | \
+ i[34567]86-sequent-ptx4* | \
+ i[34567]86-sequent-sysv3* | \
+ i[34567]86-sequent-sysv4*)
+ fixincludes=fixinc.ptx
+ ;;
+
+ i[34567]86-*-sco3.2v[45]*)
+ fixincludes=fixinc.sco
+ ;;
+
+ i[34567]86-*-solaris2.[0-4]* | \
+ *-*-solaris2.[0-4]* | \
+ *-*-sysv4*)
+ fixincludes=fixinc.svr4
+ ;;
+
+ alpha*-*-winnt* | \
+ i[34567]86-*-winnt3*)
+ fixincludes=fixinc.winnt
+ ;;
+
+ alpha*-*-linux-gnulibc1* | \
+ alpha*-*-netbsd* | \
+ arm-*-netbsd* | \
+ i[34567]86-*-freebsdelf* | \
+ i[34567]86-*-freebsd* | \
+ i[34567]86-*-netbsd* | \
+ i[34567]86-*-solaris2* | \
+ m68k-*-netbsd* | \
+ mips-dec-netbsd* | \
+ ns32k-pc532-netbsd* | \
+ *-*-solaris2* | \
+ sparc-*-netbsd* | \
+ vax-*-netbsd*)
+ fixincludes=fixinc.wrap
+ ;;
+
+ *)
+ fixincludes=generated
+ ;;
+esac
+
+if test -z "$fixincludes"
+then
+ $MAKE install DESTDIR=$destdir
+ cat > $destdir/fixinc.sh <<- _EOF_
+ #! /bin/sh
+ exit 0
+ _EOF_
+ exit 0
+fi
+
+if test -f "$fixincludes"
+then
+ cp $fixincludes $destdir/fixinc.sh
+ exit 0
+fi
+
+$MAKE install DESTDIR=$destdir
+
+exit 1