update.sh revision 33976
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 -p build/i386-aout
15(cd build/i386-aout
16    ${contribdir}/configure i386-unknown-freebsd || exit
17    (cd gas
18	echo "Updating i386-aout/as"
19	make config.h || exit
20	cp config.h ${gnudir}/i386-aout/as/config.h || exit
21	)
22    )
23
24mkdir -p build/i386-elf
25(cd build/i386-elf
26    ${contribdir}/configure i386-unknown-freebsdelf || exit
27    (cd gas
28	echo "Updating i386-elf/as"
29	make config.h || exit
30	cp config.h ${gnudir}/i386-elf/as/config.h || exit
31	)
32    (cd ld
33	echo "Updating i386-elf/ld"
34	make config.h ldemul-list.h || exit
35	cp config.h ldemul-list.h ${gnudir}/i386-elf/ld || exit
36	)
37    (cd bfd
38	echo "Updating libbfd"
39	make bfd.h config.h || exit
40	cp bfd.h config.h ${gnudir}/libbfd || exit
41	)
42    (cd binutils
43	echo "Updating libbinutils"
44	make config.h || exit
45	cp config.h ${gnudir}/libbinutils/config.h || exit
46	)
47    )
48
49rm -rf build
50