1998-03-01 23:41:17 +00:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# This script installs the main files generated by the binutils
|
|
|
|
# "configure" scripts and makefiles. It can be used for upgrading to
|
|
|
|
# a new version of binutils.
|
|
|
|
#
|
|
|
|
# Don't forget to change the VERSION definition in the top level
|
|
|
|
# "Makefile.inc0".
|
|
|
|
|
|
|
|
gnudir=$(pwd)
|
|
|
|
contribdir="${gnudir}/../../../contrib/binutils"
|
|
|
|
|
|
|
|
rm -rf build
|
1998-03-12 02:55:43 +00:00
|
|
|
mkdir build
|
1998-03-01 23:41:17 +00:00
|
|
|
|
1998-03-12 02:55:43 +00:00
|
|
|
(cd build
|
1998-03-01 23:41:17 +00:00
|
|
|
${contribdir}/configure i386-unknown-freebsdelf || exit
|
|
|
|
(cd gas
|
1998-03-12 02:55:43 +00:00
|
|
|
echo "Updating as"
|
1998-03-01 23:41:17 +00:00
|
|
|
make config.h || exit
|
1998-03-12 02:55:43 +00:00
|
|
|
cp config.h ${gnudir}/as/i386/config.h || exit
|
1998-03-01 23:41:17 +00:00
|
|
|
)
|
|
|
|
(cd ld
|
1998-03-12 02:55:43 +00:00
|
|
|
echo "Updating ld"
|
1998-03-01 23:41:17 +00:00
|
|
|
make config.h ldemul-list.h || exit
|
1998-03-12 02:55:43 +00:00
|
|
|
cp config.h ${gnudir}/ld || exit
|
|
|
|
cp ldemul-list.h ${gnudir}/ld/i386 || exit
|
1998-03-01 23:41:17 +00:00
|
|
|
)
|
|
|
|
(cd bfd
|
|
|
|
echo "Updating libbfd"
|
|
|
|
make bfd.h config.h || exit
|
1998-03-12 02:55:43 +00:00
|
|
|
cp bfd.h ${gnudir}/libbfd || exit
|
|
|
|
cp config.h ${gnudir}/libbfd/i386 || exit
|
1998-03-01 23:41:17 +00:00
|
|
|
)
|
|
|
|
(cd binutils
|
|
|
|
echo "Updating libbinutils"
|
|
|
|
make config.h || exit
|
|
|
|
cp config.h ${gnudir}/libbinutils/config.h || exit
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
rm -rf build
|