blob: fbf8359e7d54617d0fbff6dd1a8682c9a8e86bc3 [file] [log] [blame]
The Android Open Source Projectf6c38712009-03-03 19:28:47 -08001#!/bin/bash
2#
3# Copyright (C) 2007 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
Dan Bornsteinec85aa92010-11-04 11:22:35 -070017# Set up prog to be the path of this script, including following symlinks,
18# and set up progdir to be the fully-qualified pathname of its directory.
19prog="$0"
20while [ -h "${prog}" ]; do
21 newProg=`/bin/ls -ld "${prog}"`
22 newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
23 if expr "x${newProg}" : 'x/' >/dev/null; then
24 prog="${newProg}"
25 else
26 progdir=`dirname "${prog}"`
27 prog="${progdir}/${newProg}"
28 fi
29done
Dan Bornsteinec85aa92010-11-04 11:22:35 -070030progdir=`dirname "${prog}"`
Dan Bornsteind8bb0d72010-11-12 12:15:46 -080031cd "${progdir}"
32progdir=`pwd`
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080033
Dan Bornsteinec85aa92010-11-04 11:22:35 -070034# Be in the parent of the progdir when running the rest of the script.
Dan Bornsteind8bb0d72010-11-12 12:15:46 -080035cd ".."
Dan Bornsteinec85aa92010-11-04 11:22:35 -070036
Dan Bornstein82dbe1c2010-11-16 12:21:50 -080037${progdir}/opcode-gen dx/src/com/android/dx/dex/code/DalvOps.java
38${progdir}/opcode-gen dx/src/com/android/dx/dex/code/Dops.java
39${progdir}/opcode-gen dx/src/com/android/dx/dex/code/RopToDop.java
Dan Bornstein84244322010-11-17 12:05:04 -080040${progdir}/opcode-gen libdex/InstrUtils.c
Dan Bornstein11a4a792010-11-16 13:09:45 -080041${progdir}/opcode-gen libdex/OpCode.h
Dan Bornsteind03baaf2010-11-16 15:54:10 -080042${progdir}/opcode-gen libdex/OpCodeNames.c
Dan Bornsteincaf4e5a2010-11-29 16:47:09 -080043
44# It's a minor shame that these files live in a different top-level project.
45# So it goes.
46${progdir}/opcode-gen \
47 ../libcore/dalvik/src/main/java/dalvik/bytecode/OpcodeInfo.java
48${progdir}/opcode-gen \
49 ../libcore/dalvik/src/main/java/dalvik/bytecode/Opcodes.java