OSDN Git Service

Updated Russian translation.
[pf3gnuchains/pf3gnuchains3x.git] / cgen / gen-all-opcodes
1 #! /bin/sh
2 # Utility script to generate the opcodes files.
3 # This is useful for verifying changes to the generated files.
4 #
5 # Run this script in the src/cgen directory.
6
7 # Exit on any error.
8 set -e
9
10 # For debugging.
11 set -x
12
13 if [ ! -f sim.scm ]
14 then
15     echo "Not in the src/cgen directory." >& 2
16     exit 1
17 fi
18
19 builddir=tmp-opc
20
21 rm -rf $builddir
22 mkdir $builddir
23
24 export cgendir=`pwd`
25
26 cd $builddir
27 $cgendir/../opcodes/configure --prefix /tmp/junk --target m32r-elf --enable-targets=all
28 make run-cgen-all