update.sh revision 34495
1#! /bin/sh
2#
3# This script installs the main files generated by the binutils
4# "configure" scripts and makefiles.  It can be used for upgrading to
5# a new version of binutils.
6#
7# Don't forget to change the VERSION definition in the top level
8# "Makefile.inc0".
9
10gnudir=$(pwd)
11contribdir="${gnudir}/../../../contrib/binutils"
12
13rm -rf build
14mkdir build
15
16(cd build
17    ${contribdir}/configure i386-unknown-freebsdelf || exit
18    (cd gas
19	echo "Updating as"
20	make config.h || exit
21	cp config.h ${gnudir}/as/i386/config.h || exit
22	)
23    (cd ld
24	echo "Updating ld"
25	make config.h ldemul-list.h || exit
26	cp config.h ${gnudir}/ld || exit
27	cp ldemul-list.h ${gnudir}/ld/i386 || exit
28	)
29    (cd bfd
30	echo "Updating libbfd"
31	make bfd.h config.h || exit
32	cp bfd.h ${gnudir}/libbfd || exit
33	cp config.h ${gnudir}/libbfd/i386 || exit
34	)
35    (cd binutils
36	echo "Updating libbinutils"
37	make config.h || exit
38	cp config.h ${gnudir}/libbinutils/config.h || exit
39	)
40    )
41
42rm -rf build
43