]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - gnu/usr.bin/binutils/update.sh
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / gnu / usr.bin / binutils / update.sh
1 #! /bin/sh
2 #
3 # $FreeBSD$
4 #
5 # This script installs the main files generated by the binutils
6 # "configure" scripts and makefiles.  It can be used for upgrading to
7 # a new version of binutils.
8 #
9 # Don't forget to change the VERSION definition in the top level
10 # "Makefile.inc0".
11
12 gnudir=$(pwd)
13 contribdir="${gnudir}/../../../contrib/binutils"
14 platform="`uname -m`"
15
16 rm -rf build
17 mkdir build
18
19 echo "binutils elf configuration for $platform"
20
21 (cd build
22     ${contribdir}/configure $platform-unknown-freebsd || exit
23     (cd gas
24         echo "Updating as"
25         make config.h || exit
26         cp config.h ${gnudir}/as/$platform/config.h || exit
27         )
28     (cd ld
29         echo "Updating ld"
30         make config.h ldemul-list.h || exit
31         cp config.h ${gnudir}/ld || exit
32         cp ldemul-list.h ${gnudir}/ld/$platform || exit
33         )
34     (cd bfd
35         echo "Updating libbfd"
36         make bfd.h config.h || exit
37         cp bfd.h ${gnudir}/libbfd/$platform || exit
38         cp config.h ${gnudir}/libbfd/$platform || exit
39         )
40     (cd binutils
41         echo "Updating libbinutils"
42         make config.h || exit
43         cp config.h ${gnudir}/libbinutils/config.h || exit
44         )
45     )
46
47 rm -rf build