From: SeokYeon Hwang Date: Tue, 29 Dec 2015 02:29:41 +0000 (+0900) Subject: configure: support branch specific TIZEN_SDK_DEV directory X-Git-Tag: TizenStudio_2.0_p2.3.2~116 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3f6a41bd88c170eca7c3945bcb2177bf291a59c;p=sdk%2Femulator%2Fqemu.git 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 --- 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