freebsd-nq/gnu/usr.bin/binutils/update.sh

43 lines
968 B
Bash
Raw Normal View History

#! /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
mkdir build
(cd build
${contribdir}/configure i386-unknown-freebsdelf || exit
(cd gas
echo "Updating as"
make config.h || exit
cp config.h ${gnudir}/as/i386/config.h || exit
)
(cd ld
echo "Updating ld"
make config.h ldemul-list.h || exit
cp config.h ${gnudir}/ld || exit
cp ldemul-list.h ${gnudir}/ld/i386 || exit
)
(cd bfd
echo "Updating libbfd"
make bfd.h config.h || exit
cp bfd.h ${gnudir}/libbfd || exit
cp config.h ${gnudir}/libbfd/i386 || exit
)
(cd binutils
echo "Updating libbinutils"
make config.h || exit
cp config.h ${gnudir}/libbinutils/config.h || exit
)
)
rm -rf build