diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2018-03-20 13:48:43 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2018-08-24 05:23:48 +0000 |
commit | f533db349bef3c45cfbcdbdf527a8e73c39346b0 (patch) | |
tree | 612cec78affb1dbd8a431840890b66ea9ea86ca1 | |
parent | f2b87ab7629d73ff769f10568c31835cc3c3f7b5 (diff) |
Don't use git folder to check if we are using SDK sources
The license file is added to the sources when SDK is created,
use that instead of the git folder to check if we are inside SDK.
Allows users to create git repo out of the SDK sources.
Change-Id: I01f1837fc9d35063470e4409d64d9e1ccaa08e48
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
-rwxr-xr-x | scripts/setup-environment.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/setup-environment.sh b/scripts/setup-environment.sh index c66c6269..c0e8f792 100755 --- a/scripts/setup-environment.sh +++ b/scripts/setup-environment.sh @@ -98,7 +98,7 @@ if [ ! -f ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf ]; then mkdir -p ${PWD}/${BUILDDIRECTORY}/conf cp ${PWD}/sources/meta-boot2qt/meta-boot2qt-distro/conf/${LAYERSCONF} ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf - if [ ! -d ${PWD}/sources/meta-boot2qt/.git ]; then + if [ -e ${PWD}/sources/meta-boot2qt/.QT-FOR-DEVICE-CREATION-LICENSE-AGREEMENT ]; then QT_SDK_PATH=$(readlink -f ${PWD}/sources/meta-boot2qt/../../../../) fi fi |