diff options
| author | Dan Bornstein <danfuzz@android.com> | 2010-11-16 12:21:50 -0800 |
|---|---|---|
| committer | Dan Bornstein <danfuzz@android.com> | 2010-11-16 12:21:50 -0800 |
| commit | 82dbe1c22c6a1088f73f1e11e5cacbdd492ca79d (patch) | |
| tree | be7286a5ced5ad7ee5f84ae4ee7f542beab3bae5 /opcode-gen/regen-all | |
| parent | a1d6b0ea1a367188fceb7df60bf7f7cd41548898 (diff) | |
| download | android_dalvik-82dbe1c22c6a1088f73f1e11e5cacbdd492ca79d.tar.gz android_dalvik-82dbe1c22c6a1088f73f1e11e5cacbdd492ca79d.tar.bz2 android_dalvik-82dbe1c22c6a1088f73f1e11e5cacbdd492ca79d.zip | |
Promote opcode-gen to the dalvik directory.
This tool will soon be used to generate code in libdex, so it
doesn't make sense for it to live in the dx directory.
Change-Id: I63ff7ccceac08fbe314fb0782dc8f2b5d75d155a
Diffstat (limited to 'opcode-gen/regen-all')
| -rwxr-xr-x | opcode-gen/regen-all | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/opcode-gen/regen-all b/opcode-gen/regen-all new file mode 100755 index 000000000..790bf84e8 --- /dev/null +++ b/opcode-gen/regen-all @@ -0,0 +1,42 @@ +#!/bin/bash +# +# Copyright (C) 2007 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Set up prog to be the path of this script, including following symlinks, +# and set up progdir to be the fully-qualified pathname of its directory. +prog="$0" +while [ -h "${prog}" ]; do + newProg=`/bin/ls -ld "${prog}"` + newProg=`expr "${newProg}" : ".* -> \(.*\)$"` + if expr "x${newProg}" : 'x/' >/dev/null; then + prog="${newProg}" + else + progdir=`dirname "${prog}"` + prog="${progdir}/${newProg}" + fi +done +progdir=`dirname "${prog}"` +cd "${progdir}" +progdir=`pwd` + +# Be in the parent of the progdir when running the rest of the script. +cd ".." + +${progdir}/opcode-gen dx/src/com/android/dx/dex/code/DalvOps.java +${progdir}/opcode-gen dx/src/com/android/dx/dex/code/Dops.java +${progdir}/opcode-gen dx/src/com/android/dx/dex/code/RopToDop.java + +# Coming soon! +# ${progdir}/opcode-gen libdex/OpCode.h |
