#
# 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}}
# This prevents /bin/ex from failing if the current terminal type is
# unrecognizable.
-TERM=unknown
+TERM=dumb
export TERM
echo 'Building fixincludes in ' ${LIB}
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