From f3f6a41bd88c170eca7c3945bcb2177bf291a59c Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Tue, 29 Dec 2015 11:29:41 +0900 Subject: [PATCH] configure: support branch specific TIZEN_SDK_DEV directory We can support different TIZEN_SDK_DEV directory per branch now. It is useful when specific branch needs different lib dev packages. If "branch" directory is not exist, it uses default directory. Change-Id: I86bf7e31fe8538c620eb9b0bebdb7481618a93cf Signed-off-by: SeokYeon Hwang --- tizen/emulator_configure.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tizen/emulator_configure.sh b/tizen/emulator_configure.sh index 02e0833..437a6da 100755 --- a/tizen/emulator_configure.sh +++ b/tizen/emulator_configure.sh @@ -90,6 +90,13 @@ if [ -z "$TIZEN_SDK_DEV_PATH" ] ; then fi fi +if [ -d "../.git" ] ; then + BRANCH=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') + if [ -d "$TIZEN_SDK_DEV_PATH/$BRANCH" ] ; then + TIZEN_SDK_DEV_PATH="$TIZEN_SDK_DEV_PATH/$BRANCH" + fi +fi + if [ ! -z "$EXTRA_CFLAGS" ] ; then CONFIGURE_APPEND="$CONFIGURE_APPEND --extra-cflags=$EXTRA_CFLAGS" fi -- 2.7.4