fixup! Factor out common bits of build_mobile and build_tv scripts
authorYoungsoo Choi <kenshin.choi@samsung.com>
Thu, 26 Feb 2015 10:52:00 +0000 (19:52 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
When building chromium-efl with tizen v3.0 profile,
The variable 'PROFILE_NAME' has been used without being set.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=11596
Reviewed by: Antonio Gomes, venu musham

Change-Id: I6974f6ad6fb036c3d31181078bc806eab25f699a
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
tizen_src/build/build_tv.sh

index ea8e7b0..147cc2a 100755 (executable)
@@ -2,6 +2,8 @@
 
 . `dirname $0`/common.sh
 
+PROFILE_NAME=$(echo "$@" | grep -Po "(?<=\-P\s)[^\s]*" || :)
+
 EXTRA_PACK_OPTS="--extra-packs python-base-x86-arm,python-x86-arm,python-xml-x86-arm"
 if [ "$PROFILE_NAME" == "tztv_v3.0" ]; then
    EXTRA_PACK_OPTS=""