3 # Make sure we're in our directory (i.e., where this shell script is)
7 # Configure fetch method
8 URL
="http://www.minix3.org/distfiles-minix/gcc-4.5.3.tar.bz2"
9 BACKUP_URL
="ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-4.5.3/gcc-4.5.3.tar.bz2"
16 # Remove a few directories from the start, so we do not end up with a 165MB patch...
17 DELETEDIRS
="include/elf
18 libada libjava libffi libgfortran
20 gcc/ada gcc/fortran gcc/java
21 gcc/testsuite/ada gcc/testsuite/gnat gcc/testsuite/gnat.dg
22 gcc/testsuite/gfortran.dg gcc/testsuite/gfortran.fortran-torture
24 # Fetch sources if not available
27 if [ ! -f gcc-4.5
.3.
tar.bz2
];
35 tar -oxjf gcc-4.5
.3.
tar.bz2
&& \
36 mv gcc-4.5
.3 dist
&& \
38 rm -rf $DELETEDIRS && \
39 cat ..
/patches
/* |
patch -p1 && \
40 cp ..
/files
/minix.h gcc
/config
/ && \
41 cp ..
/files
/minix-spec.h gcc
/config
/ && \
42 cp ..
/files
/i386-minix.h gcc
/config
/i386
/minix.h
&& \
43 cp ..
/files
/gcov-minix-fs-wrapper.h gcc
/