#! /bin/sh # # Apply the patch to the original sources (download directory) # echo GCC4TI script: Applying patch to original sources... isos=`uname -a | grep "opensolaris"` if [ "x$isos" = "x" ]; then #Assume GNU or BSD patch patch=patch else patch=gpatch fi cd ../download; # Binutils echo Patching binutils... cd binutils.ti echo Removing unneeded directories rm -f .brik rm -f md5.sum rm -f -r INSTALL rm -f -r libiberty/testsuite rm -f -r maintainer-scripts rm -f -r bfd/doc rm -f -r bfd/po rm -f -r binutils rm -f -r cpu rm -f -r etc rm -f -r gas/doc rm -f -r gas/po rm -f -r gas/testsuite rm -f -r gprof rm -f -r include/nlm rm -f -r include/regs rm -f -r ld rm -f -r opcodes/po rm -f -r texinfo echo Applying GCC4TI patch ${patch} -p1 < ../../sources/gcc/gas-2.16-tigcc-patch.diff || exit 1 cd .. # Gcc echo Patching GCC... cd gcc.ti echo Removing unneeded directories rm -f .brik rm -f md5.sum rm -f -r INSTALL rm -f -r fixincludes rm -f -r gcc/ginclude rm -f -r gcc/po rm -f -r gcc/doc rm -f -r gcc/treelang rm -f -r gcc/objcp rm -f -r libcpp/po rm -f -r libmudflap rm -f -r libssp rm -f -r libiberty/testsuite rm -f -r maintainer-scripts rm -f -r etc rm -f -r gprof rm -f -r include/nlm rm -f -r include/regs rm -f -r texinfo echo Applying GCC4TI patch ${patch} -p1 < ../../sources/gcc/gcc-4.1-tigcc-patch.diff || exit 1 echo Done. exit 0