Deleted Added
full compact
update.sh (34495) update.sh (34497)
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"
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"
12platform="`uname -m`"
12
13rm -rf build
14mkdir build
15
13
14rm -rf build
15mkdir build
16
17echo "binutils elf configuration for $platform"
18
16(cd build
19(cd build
17 ${contribdir}/configure i386-unknown-freebsdelf || exit
20 ${contribdir}/configure $platform-unknown-freebsdelf || exit
18 (cd gas
19 echo "Updating as"
20 make config.h || exit
21 (cd gas
22 echo "Updating as"
23 make config.h || exit
21 cp config.h ${gnudir}/as/i386/config.h || exit
24 cp config.h ${gnudir}/as/$platform/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
25 )
26 (cd ld
27 echo "Updating ld"
28 make config.h ldemul-list.h || exit
29 cp config.h ${gnudir}/ld || exit
27 cp ldemul-list.h ${gnudir}/ld/i386 || exit
30 cp ldemul-list.h ${gnudir}/ld/$platform || exit
28 )
29 (cd bfd
30 echo "Updating libbfd"
31 make bfd.h config.h || exit
31 )
32 (cd bfd
33 echo "Updating libbfd"
34 make bfd.h config.h || exit
32 cp bfd.h ${gnudir}/libbfd || exit
33 cp config.h ${gnudir}/libbfd/i386 || exit
35 cp bfd.h ${gnudir}/libbfd/$platform || exit
36 cp config.h ${gnudir}/libbfd/$platform || 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
37 )
38 (cd binutils
39 echo "Updating libbinutils"
40 make config.h || exit
41 cp config.h ${gnudir}/libbinutils/config.h || exit
42 )
43 )
44
45rm -rf build