#! /bin/sh # Utility script to generate the opcodes files. # This is useful for verifying changes to the generated files. # # Run this script in the src/cgen directory. # Exit on any error. set -e # For debugging. set -x if [ ! -f sim.scm ] then echo "Not in the src/cgen directory." >& 2 exit 1 fi builddir=tmp-opc rm -rf $builddir mkdir $builddir export cgendir=`pwd` cd $builddir $cgendir/../opcodes/configure --prefix /tmp/junk --target m32r-elf --enable-targets=all make run-cgen-all