update.sh revision 33975
133975Sjdp#! /bin/sh 233975Sjdp# 333975Sjdp# This script installs the main files generated by the binutils 433975Sjdp# "configure" scripts and makefiles. It can be used for upgrading to 533975Sjdp# a new version of binutils. 633975Sjdp# 733975Sjdp# Don't forget to change the VERSION definition in the top level 833975Sjdp# "Makefile.inc0". 933975Sjdp 1033975Sjdpgnudir=$(pwd) 1133975Sjdpcontribdir="${gnudir}/../../../contrib/binutils" 1233975Sjdp 1333975Sjdprm -rf build 1433975Sjdpmkdir -p build/i386-aout 1533975Sjdp(cd build/i386-aout 1633975Sjdp ${contribdir}/configure i386-unknown-freebsd || exit 1733975Sjdp (cd gas 1833975Sjdp echo "Updating i386-aout/as" 1933975Sjdp make config.h || exit 2033975Sjdp cp config.h ${gnudir}/i386-aout/as/config.h || exit 2133975Sjdp ) 2233975Sjdp ) 2333975Sjdp 2433975Sjdpmkdir -p build/i386-elf 2533975Sjdp(cd build/i386-elf 2633975Sjdp ${contribdir}/configure i386-unknown-freebsdelf || exit 2733975Sjdp (cd gas 2833975Sjdp echo "Updating i386-elf/as" 2933975Sjdp make config.h || exit 3033975Sjdp cp config.h ${gnudir}/i386-elf/as/config.h || exit 3133975Sjdp ) 3233975Sjdp (cd ld 3333975Sjdp echo "Updating i386-elf/ld" 3433975Sjdp make config.h ldemul-list.h || exit 3533975Sjdp cp config.h ldemul-list.h ${gnudir}/i386-elf/ld || exit 3633975Sjdp ) 3733975Sjdp (cd bfd 3833975Sjdp echo "Updating libbfd" 3933975Sjdp make bfd.h config.h || exit 4033975Sjdp cp bfd.h config.h ${gnudir}/libbfd || exit 4133975Sjdp ) 4233975Sjdp (cd binutils 4333975Sjdp echo "Updating libbinutils" 4433975Sjdp make config.h || exit 4533975Sjdp cp config.h ${gnudir}/libbinutils/config.h || exit 4633975Sjdp ) 4733975Sjdp ) 4833975Sjdp 4933975Sjdprm -rf build 50