head	1.5;
access;
symbols
	gcc-2_8_1-990325:1.5
	gcc-2_8_1-990319:1.5
	gcc-2_8_1-990302:1.5
	gcc_2_8_1-990302:1.5
	gcc_2_8_1-990222:1.5
	gcc-2_8_1-990109:1.5
	gcc-2_8_1-981210:1.5
	gcc-2_8_1-981208:1.5
	gcc-2_8_1-980929:1.5
	gcc_2_8_1-980929:1.5
	gcc-2_8_1-980928:1.5
	gcc-2_8_1-980813:1.5
	gcc-2_8_1-980811:1.5
	gcc-2_8_1-980718:1.5
	gcc-2_8_1-980705:1.5
	gcc-2_8_1-980627:1.5
	gcc-2_8_1-980609:1.5
	gcc-2_8_1-980608:1.5
	gcc-2_8_1-980529:1.5
	gcc-2_8_1-980525:1.5
	gcc-2_8_1-980513:1.5
	gcc-2_8_1-980502:1.5
	gcc-2_8_1-980402:1.5
	gcc-2_8_1-980426:1.5
	gcc-2_8_1-980419:1.5
	gcc-2_8_1-980413:1.5
	gcc-2_8_1-980412:1.5
	gcc-2_8_1-980407:1.5
	gcc-2_8_1-980401:1.5
	gcc_2_8_1-980315:1.5
	gcc-2_8_1-RELEASE:1.5;
locks; strict;
comment	@# @;


1.5
date	94.08.16.20.42.48;	author friedman;	state Exp;
branches;
next	1.4;

1.4
date	93.11.06.09.01.28;	author friedman;	state Exp;
branches;
next	1.3;

1.3
date	93.11.06.08.15.36;	author friedman;	state Exp;
branches;
next	1.2;

1.2
date	93.06.01.22.11.58;	author rms;	state Exp;
branches;
next	1.1;

1.1
date	93.06.01.18.13.57;	author rms;	state Exp;
branches;
next	;


desc
@#!/bin/sh
@


1.5
log
@Updated comments.
@
text
@#!/bin/sh
# $Id$
# This script exists for use after installing
# the GCC binaries from a distribution tape/CD-ROM.
# Use it *after* copying the directory of binaries
# to the proper installed location.
# It runs fixincludes (or fixinc.svr4, if appropriate) to correct bugs in
# the system header files.
# This script needs to be customized for each type of installation so that
# others may run it after the installation-sans-fixincludes is completed.

# The corrected header files go in the GCC installation directory
# so that only GCC sees them.
# This script does not modify the original header files in /usr/include.
# It only modifies copies in the GCC installation directory.

installed=/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.6.0
cd $installed/include

rmdir tmpfoo > /dev/null 2>&1
mkdir tmpfoo
mv va-sparc.h varargs.h stdarg.h stddef.h limits.h float.h proto.h tmpfoo

$installed/fixinc.svr4 $installed/include /usr/include $installed

# Make sure fixed native limits.h gets renamed to syslimits.h before gcc's
# limits.h from tmpfoo is moved back.
rm -f syslimits.h
if test -f limits.h ; then
  mv limits.h syslimits.h
else
  cp $installed/gsyslimits.h syslimits.h
fi
chmod a+r syslimits.h

mv tmpfoo/* .
rmdir tmpfoo

# eof
@


1.4
log
@Install gsyslimits.h if native limits.h didn't need fixing.
@
text
@d2 1
d4 1
a4 1
# the Solaris binaries from a distribution tape/CDROM.
d7 4
a10 1
# It runs fixinc.svr4 to correct bugs in the Solaris header files.
d17 1
a17 1
installed=/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.0
@


1.3
log
@Rename fixed native limits.h to syslimits.h before renaming gcc's limits.h
from tmpfoo directory.
@
text
@d24 1
a25 1
  rm -f syslimits.h
d27 2
@


1.2
log
@entered into RCS
@
text
@d3 1
a3 1
# the Solaris binaries from the FSF CD-ROM.
d13 1
a13 1
installed=/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.4.2
d15 1
d19 1
d21 9
d32 2
@


1.1
log
@Initial revision
@
text
@d2 14
a15 1
rmdir tmpfoo 2>&1 >/def/null
d18 1
a18 1
./fixinc.svr4 /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/gcc-2.4.2/include /include .
@
