Annotation of gcc/just-fixinc, revision 1.1.1.2

1.1       root        1: #!/bin/sh
                      2: # This script exists for use after installing
1.1.1.2 ! root        3: # the Solaris binaries from a distribution tape/CDROM.
1.1       root        4: # Use it *after* copying the directory of binaries
                      5: # to the proper installed location.
                      6: # It runs fixinc.svr4 to correct bugs in the Solaris header files.
                      7: 
                      8: # The corrected header files go in the GCC installation directory
                      9: # so that only GCC sees them.
                     10: # This script does not modify the original header files in /usr/include.
                     11: # It only modifies copies in the GCC installation directory.
                     12: 
1.1.1.2 ! root       13: installed=/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.0
1.1       root       14: cd $installed/include
1.1.1.2 ! root       15: 
1.1       root       16: rmdir tmpfoo > /dev/null 2>&1
                     17: mkdir tmpfoo
                     18: mv va-sparc.h varargs.h stdarg.h stddef.h limits.h float.h proto.h tmpfoo
1.1.1.2 ! root       19: 
1.1       root       20: $installed/fixinc.svr4 $installed/include /usr/include $installed
1.1.1.2 ! root       21: 
        !            22: # Make sure fixed native limits.h gets renamed to syslimits.h before gcc's
        !            23: # limits.h from tmpfoo is moved back.
        !            24: rm -f syslimits.h
        !            25: if test -f limits.h ; then
        !            26:   mv limits.h syslimits.h
        !            27: else
        !            28:   cp $installed/gsyslimits.h syslimits.h
        !            29: fi
        !            30: chmod a+r syslimits.h
        !            31: 
1.1       root       32: mv tmpfoo/* .
                     33: rmdir tmpfoo
1.1.1.2 ! root       34: 
        !            35: # eof

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.