X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=build.template;h=bb1d2a334a08a1ad2b1552765b5a34983938473d;hb=4ab796abd28cfef3d37f9020b7f9aedeaad11e2f;hp=34f06db75d275a25bcd79d134bf788749eac658c;hpb=26f84471548d67f968acb82939407b1b4ed63802;p=scm%2Fmeta%2Fabs.git diff --git a/build.template b/build.template index 34f06db..bb1d2a3 100644 --- a/build.template +++ b/build.template @@ -1,4 +1,4 @@ -$!/bin/bash +#!/bin/bash set -x ABS_CMD=/home/build/abs @@ -60,12 +60,22 @@ if [[ ! $rs_list =~ [0-9]{8}_[0-9] ]]; then echo ${rs_list}.${dateversion} > $SHARE_ROOT/rsver fi +# Inject tidlc path +TIDLC_PATH=`sed -n '/tidl/p' /home/build/.bashrc | cut -f2 -d':'` +if [ ! -z ${TIDLC_PATH} ]; then echo "PATH=\$PATH:${TIDLC_PATH}" >> /home/build/.profile; fi +su - build -c "tidlc --version" + +DBUS_SESSION="dbus-run-session -- bash; echo build | gnome-keyring-daemon --unlock; " +su - build -c "gnome-keyring-daemon --help" +if [ $? -ne 0 ]; then + DBUS_SESSION=" " +fi for rs in $rs_list; do echo "BUILDING START TIME: `date`" #if [[ $rs == *"64.core"* ]]; then # echo "SKIP! 64-bit not supported!"; continue; #else - su - build -c "${ABS_CMD} build -r $rs -w ${BUILD_ROOT}/${PACKAGE} -s ABS -c ${BUILD_MODE} ${PARALLEL_JOBS} --profile-to-search ${PROFILE}" + su - build -c "${DBUS_SESSION} ${ABS_CMD} build -r $rs -w ${BUILD_ROOT}/${PACKAGE} -s ABS -c ${BUILD_MODE} ${PARALLEL_JOBS} --profile-to-search ${PROFILE}" #fi count=`ls -1 ${TMP_DIR}/*.tpk 2>/dev/null | wc -l` if [ $count != 0 ]; then @@ -79,6 +89,9 @@ for rs in $rs_list; do fi done +echo "OUTPUT CONTENTS..." +ls -al ${SHARE_ROOT} + #FIXME: Check 64 bit rootstraps for mobile profile. #if [[ $BUILD_TYPE = "SUBMIT" ]] && [[ $PROFILE = "mobile" ]]; then # if [[ $rs_list = *"device64"* ]] && [[ $rs_list = *"emulator64"* ]]; then