8sa1-gcc/gcc/just-fixinc

40 lines
1.3 KiB
Plaintext
Raw Normal View History

1993-06-01 14:13:57 -04:00
#!/bin/sh
# $Id: just-fixinc,v 1.2 1998/04/03 16:35:58 law Exp $
1993-06-01 18:11:58 -04:00
# This script exists for use after installing
1994-08-16 16:42:48 -04:00
# the GCC binaries from a distribution tape/CD-ROM.
1993-06-01 18:11:58 -04:00
# Use it *after* copying the directory of binaries
# to the proper installed location.
1994-08-16 16:42:48 -04:00
# 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.
1993-06-01 18:11:58 -04:00
# 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.
1994-08-16 16:42:48 -04:00
installed=/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.6.0
1993-06-01 18:11:58 -04:00
cd $installed/include
1993-06-01 18:11:58 -04:00
rmdir tmpfoo > /dev/null 2>&1
1993-06-01 14:13:57 -04:00
mkdir tmpfoo
mv va-sparc.h varargs.h stdarg.h stddef.h limits.h float.h proto.h tmpfoo
1993-06-01 18:11:58 -04:00
$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
1993-06-01 14:13:57 -04:00
mv tmpfoo/* .
rmdir tmpfoo
# eof