Revision 8834,
1.3 KB
checked in by ghudson, 28 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r8833,
which included commits to RCS files with non-trunk default branches.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # $Id: just-fixinc,v 1.1.1.1 1996-09-18 03:11:06 ghudson Exp $ |
---|
3 | # This script exists for use after installing |
---|
4 | # the GCC binaries from a distribution tape/CD-ROM. |
---|
5 | # Use it *after* copying the directory of binaries |
---|
6 | # to the proper installed location. |
---|
7 | # It runs fixincludes (or fixinc.svr4, if appropriate) to correct bugs in |
---|
8 | # the system header files. |
---|
9 | # This script needs to be customized for each type of installation so that |
---|
10 | # others may run it after the installation-sans-fixincludes is completed. |
---|
11 | |
---|
12 | # The corrected header files go in the GCC installation directory |
---|
13 | # so that only GCC sees them. |
---|
14 | # This script does not modify the original header files in /usr/include. |
---|
15 | # It only modifies copies in the GCC installation directory. |
---|
16 | |
---|
17 | installed=/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.6.0 |
---|
18 | cd $installed/include |
---|
19 | |
---|
20 | rmdir tmpfoo > /dev/null 2>&1 |
---|
21 | mkdir tmpfoo |
---|
22 | mv va-sparc.h varargs.h stdarg.h stddef.h limits.h float.h proto.h tmpfoo |
---|
23 | |
---|
24 | $installed/fixinc.svr4 $installed/include /usr/include $installed |
---|
25 | |
---|
26 | # Make sure fixed native limits.h gets renamed to syslimits.h before gcc's |
---|
27 | # limits.h from tmpfoo is moved back. |
---|
28 | rm -f syslimits.h |
---|
29 | if test -f limits.h ; then |
---|
30 | mv limits.h syslimits.h |
---|
31 | else |
---|
32 | cp $installed/gsyslimits.h syslimits.h |
---|
33 | fi |
---|
34 | chmod a+r syslimits.h |
---|
35 | |
---|
36 | mv tmpfoo/* . |
---|
37 | rmdir tmpfoo |
---|
38 | |
---|
39 | # eof |
---|
Note: See
TracBrowser
for help on using the repository browser.