Initial Contribution

This commit is contained in:
The Android Open Source Project
2008-10-21 07:00:00 -07:00
commit 5c11852110
2143 changed files with 253519 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
#!/bin/bash
function die() {
echo "Error: $*"
exit 1
}
set -e # fail early
# This may run either from the //device directory or from the
# eclipse/script directory. Allow for both.
D="device/tools/eclipse/scripts"
[ -d "$D" ] && cd "$D"
[ -d "../$D" ] && cd "../$D"
cd ../plugins/com.android.ide.eclipse.common
HOST=`uname`
if [ "$HOST" == "Linux" ]; then
ln -svf ../../../../out/host/linux-x86/framework/sdkstats.jar .
ln -svf ../../../../out/host/linux-x86/framework/androidprefs.jar .
elif [ "$HOST" == "Darwin" ]; then
ln -svf ../../../../out/host/darwin-x86/framework/sdkstats.jar .
ln -svf ../../../../out/host/darwin-x86/framework/androidprefs.jar .
elif [ "${HOST:0:6}" == "CYGWIN" ]; then
DEVICE_DIR="../../../.."
echo "make java libs ..."
( cd "$DEVICE_DIR" &&
make -j3 sdkstats androidprefs ) || \
die "Define javac and retry."
for DIR in "$PWD" ; do
echo "Copying java libs to $DIR"
for JAR in sdkstats.jar androidprefs.jar ; do
cp -vf "$DEVICE_DIR/out/host/windows-x86/framework/$JAR" "$DIR"
chmod a+rx "$DIR/$JAR"
done
done
else
echo "Unsupported platform ($HOST). Nothing done."
fi