3 # Make sure we're in our directory (i.e., where this shell script is)
7 # Default sed: whatever's in $PATH; set by the buildsystem to be the
8 # host-built sed tool we know supports the syntax we use
11 # Configure fetch method
12 URL
="http://www.minix3.org/pkgsrc/distfiles/minix/3.4.0/gcc-4.8.5.tar.bz2"
13 BACKUP_URL
="ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-4.8.5/gcc-4.8.5.tar.bz2"
15 if which curl
>/dev
/null
20 # Remove a few directories from the start, so we do not end up with a 165MB patch...
42 libstdc++-v3/testsuite
45 # Fetch sources if not available
48 if [ ! -f gcc-4.8
.5.
tar.bz2
];
56 tar -oxjf gcc-4.8
.5.
tar.bz2
60 #for f in gcc/doc/gccinstall.info gcc/doc/gccint.info
61 #do # This is a hack to remove NUL characters in these .info
62 # files. They make some patch(1)es fail.
63 # $SED 's/^..\[index..\]$/[index]/' <$f >k && mv k $f
65 cat ..
/patches
/* |
patch -p1
66 cp ..
/files
/minix.h gcc
/config
/
67 cp ..
/files
/t-minix gcc
/config
/
68 cp ..
/files
/minix-spec.h gcc
/config
/
69 cp ..
/files
/arm-minix.h gcc
/config
/arm
/minix.h
70 cp ..
/files
/i386-minix.h gcc
/config
/i386
/minix.h
71 cp ..
/files
/gcov-minix-fs-wrapper.h gcc
/