#!/bin/sh # Built on TCL v1.4 as root # Required extensions: # compiletc # libgmp # libmpfr # advcomp # cramfs-utils tar -jxf gcc-core-4.2.2.tar.bz2 tar -jxf gcc-g++-4.2.2.tar.bz2 tar -jxf gcc-fortran-4.2.2.tar.bz2 tar -jxf gcc-testsuite-4.2.2.tar.bz2 mkdir gcc-build cd gcc-build ../gcc-4.2.2/configure --prefix=/usr --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++,fortran --disable-libstdcxx-pch make touch ../mark make install cd .. mv /usr/libexec/gcc/i686-pc-linux-gnu/4.2.2/f951 /usr/bin GCCDIR=`pwd` cd /usr/bin sudo ln -s gfortran f77 ln -s gfortran g77 cd $GCCDIR find /usr/ -newer mark -not -type d > filelist cat filelist | grep -e fortran > filelist2 cat filelist | grep -e finclude >> filelist2 cat filelist | grep -e 77 >> filelist2 cat filelist | grep -e f951 >> filelist2 cat filelist2 | grep -v -e man > filelist2 tar -czf gfortran.tcel -T filelist2 advdef -z4 gfortran.tcel md5sum gfortran.tcel > gfortran.tcel.md5.txt TCZDIR=`mktemp -d tcz.XXXXXX` cd $TCZDIR tar zxf ../gfortran.tcel cd .. mkfs.cramfs $TCZDIR gfortran.tczl md5sum gfortran.tczl > gfortran.tczl.md5.txt rm -rf $TCZDIR gcc-4.2.2 gcc-build mark filelist filelist2