Fix eclipse setup scripts.

The fix will work for Linux and Mac, however for Windows the DDMS icons will have an invalid path.
I can address the Windows DDMS issue in a next CL if necessary by merging in a different
CL from upstream.
This commit is contained in:
raphael
2008-12-03 21:13:12 -08:00
parent 4dd550143e
commit 991c4bdd4d
6 changed files with 168 additions and 168 deletions

View File

@@ -3,30 +3,29 @@
echo "### $0 executing"
function die() {
echo "Error: $*"
exit 1
echo "Error: $*"
exit 1
}
D="device/tools/eclipse/scripts"
if [ -d "../$D" ]; then
cd "../$D"
else
[ "${PWD: -28}" == "$D" ] || die "Please execute this from the $D directory"
fi
# CD to the top android directory
D=`dirname "$0"`
cd "$D/../../../../"
DEST="development/tools/eclipse/scripts"
set -e # fail early
echo ; echo "### ADT ###" ; echo
./create_adt_symlinks.sh "$*"
$DEST/create_adt_symlinks.sh "$*"
echo ; echo "### COMMON ###" ; echo
./create_common_symlinks.sh "$*"
$DEST/create_common_symlinks.sh "$*"
echo ; echo "### EDITORS ###" ; echo
./create_editors_symlinks.sh "$*"
$DEST/create_editors_symlinks.sh "$*"
echo ; echo "### DDMS ###" ; echo
./create_ddms_symlinks.sh "$*"
$DEST/create_ddms_symlinks.sh "$*"
echo ; echo "### TEST ###" ; echo
./create_test_symlinks.sh "$*"
$DEST/create_test_symlinks.sh "$*"
echo ; echo "### BRIDGE ###" ; echo
./create_bridge_symlinks.sh "$*"
$DEST/create_bridge_symlinks.sh "$*"
echo "### $0 done"