aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/scripts
diff options
context:
space:
mode:
authorRaphael <raphael@google.com>2011-11-23 09:09:03 -0800
committerRaphael <raphael@google.com>2011-11-23 09:09:03 -0800
commitf1c02633c459f063e33e97ec34c47e91b1643334 (patch)
tree8c3059c27ff2e59994c4768a4eebaf4613dc7ec9 /eclipse/scripts
parent0943987d54a4bbbb200789be869ed81e45efe347 (diff)
downloadsdk-f1c02633c459f063e33e97ec34c47e91b1643334.zip
sdk-f1c02633c459f063e33e97ec34c47e91b1643334.tar.gz
sdk-f1c02633c459f063e33e97ec34c47e91b1643334.tar.bz2
SDK: run lunch sdk-eng as part of create_all_symlinks.
When I open a new shell/terminal, I often forget to run envsetup and lunch sdk-eng, and then create_all_symlinks nicely cleans out for me... This runs lunch sdk-eng, but only if TARGET_PLATFORM is not set. Change-Id: I1d955682827c13f6f53ae25af4293edc38bc1d76
Diffstat (limited to 'eclipse/scripts')
-rwxr-xr-xeclipse/scripts/create_all_symlinks.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/eclipse/scripts/create_all_symlinks.sh b/eclipse/scripts/create_all_symlinks.sh
index b9bd7d4..c6cd467 100755
--- a/eclipse/scripts/create_all_symlinks.sh
+++ b/eclipse/scripts/create_all_symlinks.sh
@@ -145,6 +145,14 @@ if [[ $PLATFORM != "windows-x86" ]]; then
CP_FILES="$CP_FILES @:$GLD_DEST $GLD_LIBS"
fi
+# Make sure we have lunch sdk-<something>
+if [[ ! "$TARGET_PRODUCT" ]]; then
+ echo "## TARGET_PRODUCT is not set, running build/envsetup.sh"
+ . build/envsetup.sh
+ echo "## lunch sdk-eng"
+ lunch sdk-eng
+fi
+
# Run make on all libs
J="4"