update.sh revision 70065
133975Sjdp#! /bin/sh 233975Sjdp# 370065Sobrien# $FreeBSD: head/gnu/usr.bin/binutils/update.sh 70065 2000-12-15 20:11:28Z obrien $ 470065Sobrien# 533975Sjdp# This script installs the main files generated by the binutils 633975Sjdp# "configure" scripts and makefiles. It can be used for upgrading to 733975Sjdp# a new version of binutils. 833975Sjdp# 933975Sjdp# Don't forget to change the VERSION definition in the top level 1033975Sjdp# "Makefile.inc0". 1133975Sjdp 1233975Sjdpgnudir=$(pwd) 1333975Sjdpcontribdir="${gnudir}/../../../contrib/binutils" 1434497Sjbplatform="`uname -m`" 1533975Sjdp 1633975Sjdprm -rf build 1734495Sjdpmkdir build 1833975Sjdp 1934497Sjbecho "binutils elf configuration for $platform" 2034497Sjb 2134495Sjdp(cd build 2270065Sobrien ${contribdir}/configure $platform-unknown-freebsd || exit 2333975Sjdp (cd gas 2434495Sjdp echo "Updating as" 2533975Sjdp make config.h || exit 2634497Sjb cp config.h ${gnudir}/as/$platform/config.h || exit 2733975Sjdp ) 2833975Sjdp (cd ld 2934495Sjdp echo "Updating ld" 3033975Sjdp make config.h ldemul-list.h || exit 3134495Sjdp cp config.h ${gnudir}/ld || exit 3234497Sjb cp ldemul-list.h ${gnudir}/ld/$platform || exit 3333975Sjdp ) 3433975Sjdp (cd bfd 3533975Sjdp echo "Updating libbfd" 3633975Sjdp make bfd.h config.h || exit 3734497Sjb cp bfd.h ${gnudir}/libbfd/$platform || exit 3834497Sjb cp config.h ${gnudir}/libbfd/$platform || exit 3933975Sjdp ) 4033975Sjdp (cd binutils 4133975Sjdp echo "Updating libbinutils" 4233975Sjdp make config.h || exit 4333975Sjdp cp config.h ${gnudir}/libbinutils/config.h || exit 4433975Sjdp ) 4533975Sjdp ) 4633975Sjdp 4733975Sjdprm -rf build 48