summaryrefslogtreecommitdiff
path: root/gcc/just-fixinc
diff options
context:
space:
mode:
authorfriedman <friedman@138bc75d-0d04-0410-961f-82ee72b054a4>1993-11-06 08:15:36 +0000
committerfriedman <friedman@138bc75d-0d04-0410-961f-82ee72b054a4>1993-11-06 08:15:36 +0000
commit20881ddcd50ee9d7707fbdef3b96c76855313615 (patch)
treecf69d01aabd495b0e52740b575320d30189d69ff /gcc/just-fixinc
parent559970420380541d55f3cfbef7e6569954d02282 (diff)
downloadgcc-20881ddcd50ee9d7707fbdef3b96c76855313615.tar.gz
Rename fixed native limits.h to syslimits.h before renaming gcc's limits.h
from tmpfoo directory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6025 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/just-fixinc')
-rwxr-xr-xgcc/just-fixinc17
1 files changed, 15 insertions, 2 deletions
diff --git a/gcc/just-fixinc b/gcc/just-fixinc
index 285674501df..3520cd6b77e 100755
--- a/gcc/just-fixinc
+++ b/gcc/just-fixinc
@@ -1,6 +1,6 @@
#!/bin/sh
# This script exists for use after installing
-# the Solaris binaries from the FSF CD-ROM.
+# the Solaris binaries from a distribution tape/CDROM.
# Use it *after* copying the directory of binaries
# to the proper installed location.
# It runs fixinc.svr4 to correct bugs in the Solaris header files.
@@ -10,11 +10,24 @@
# 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.4.2
+installed=/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.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.
+if test -f limits.h ; then
+ rm -f syslimits.h
+ mv limits.h syslimits.h
+fi
+chmod a+r syslimits.h
+
mv tmpfoo/* .
rmdir tmpfoo
+
+# eof