File: just-fixinc

package info (click to toggle)
pm3 1.1.15-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 140,404 kB
  • ctags: 106,859
  • sloc: ansic: 891,434; modula3: 550,649; exp: 18,409; sh: 16,930; lisp: 13,693; makefile: 13,271; asm: 11,795; cpp: 5,560; yacc: 5,125; sed: 1,047; csh: 254; awk: 223; pascal: 95; fortran: 5
file content (39 lines) | stat: -rw-r--r-- 1,286 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
# $Id: just-fixinc,v 1.2 1997/02/07 20:01:13 ldd Exp $
# 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