#!/bin/sh TOP_DIR=`pwd` CVS_ROOT=:ext:anoncvs@savannah.gnu.org:/cvsroot/gcc if [ -d $TOP_DIR/gcc ]; then echo "Found another gcc directory" echo "Please run this script in a cleaned directory." exit fi # Let's check out gcjx cvs -d $CVS_ROOT co -r gcjx-branch gcc/gcjx # Add missing files cvs -d $CVS_ROOT co -r gcjx-branch \ gcc/libtool.m4 \ gcc/install-sh \ gcc/config.sub \ gcc/config.guess \ gcc/ltconfig \ gcc/ltmain.sh \ gcc/ltcf-c.sh \ gcc/ltcf-cxx.sh \ gcc/depcomp if [ ! -d $TOP_DIR/gcc ]; then echo "Fail to check out gcjx. Abort" exit fi # Re-build gcjx rm -rf gcc/build-gcjx mkdir -p gcc/build-gcjx echo '\ CXXFLAGS="-Os" \ ../gcjx/configure \ --prefix=/usr \ --with-gcjx-debugging \ --disable-shared \ --enable-static ' > gcc/conf-gcjx # Configure and make cd gcc/build-gcjx sh ../conf-gcjx if [ ! -f Makefile ]; then echo "There must be something wrong!" echo "Please consult config.log for details" exit fi make if [ ! -f gcc/build-gcjx/gcjx ]; then echo "Okay, please check the executable: $TOP_DIR/gcc/build-gcjx/gcjx, which is the GCJX binary." else echo "Fail to build GCJX" exit fi