aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-18 04:04:55 +0000
committerRichard Stallman <rms@gnu.org>1992-07-18 04:04:55 +0000
commit4cf98b8322944ce2e990bcf024d514a03021949a (patch)
tree8faba7db92251156240b366a084f01c67dff9f8d /gcc
parenta8b17b3d48cb5338826065275d6178f6c05df18c (diff)
downloadgcc-4cf98b8322944ce2e990bcf024d514a03021949a.zip
gcc-4cf98b8322944ce2e990bcf024d514a03021949a.tar.gz
gcc-4cf98b8322944ce2e990bcf024d514a03021949a.tar.bz2
entered into RCS
From-SVN: r1621
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixinc.svr47
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4
index 736fdb1..69acd9c 100755
--- a/gcc/fixinc.svr4
+++ b/gcc/fixinc.svr4
@@ -31,6 +31,9 @@
#
# See README-fixinc for more information.
+# Directory where gcc sources (and sometimes special include files) live.
+SRCDIR=${3-${SRCDIR-.}}
+
# Directory containing the original header files.
INPUT=${2-${INPUT-/usr/include}}
@@ -55,7 +58,7 @@ cd $LIB; LIB=`pwd`
# This prevents /bin/ex from failing if the current terminal type is
# unrecognizable.
-TERM=unknown
+TERM=dumb
export TERM
echo 'Building fixincludes in ' ${LIB}
@@ -950,7 +953,7 @@ cd ${ORIG_DIR}
echo 'Replacing <sys/byteorder.h>'
rm -f ${LIB}/sys/byteorder.h
-cp byteorder.h ${LIB}/sys/byteorder.h
+cp ${SRCDIR}/byteorder.h ${LIB}/sys/byteorder.h
exit 0