#/bin/bash function get_tizenfx () { BB=$1 STATUS="start" FX_LIST="" LINE_NUM=`grep -n "" /opt/share/bb/mapping-bb-tizenfx.xml | awk -F: '{print \$1}'` exec < /opt/share/bb/mapping-bb-tizenfx.xml if [ x"$LINE_NUM" == "x" ] then retval="FAIL" else while ((LINE_NUM--)) do read line done while read line do echo $line | grep "" > /dev/null if [ $? == 0 ] then STATUS="done" break fi LIST=`echo $line | sed -e "s/\(.\+\)<\/fx_info>/\1/"` FX_LIST="$FX_LIST $LIST" done if [ $STATUS == "done" ] then echo "$FX_LIST" | grep "NONE" > /dev/null if [ $? == 0 ] then retval="FAIL" else retval=$FX_LIST fi else retval="FAIL" fi fi } rpm -qa | grep building-blocks-sub1-domain_Feature-DotNET > /dev/null if [ $? == 0 -a -f /opt/share/bb/mapping-bb-tizenfx.xml ] then API_LIST=`rpm -qa --queryformat="%{NAME}\n"| grep building-blocks- | grep domain_CSAPI` API_LIST="${API_LIST} building-blocks-sub1-domain_Feature-DotNET" G_FX_LIST="" for API in $API_LIST do # echo $API get_tizenfx $API if [ "$retval" != "FAIL" ] then G_FX_LIST="$G_FX_LIST $retval" fi done mkdir -p /tmp/fx_bb G_FX_LIST=`echo $G_FX_LIST | sed -e "s/ /\n/g" | sort -u` for FX in $G_FX_LIST do echo $FX rm -f /usr/share/dotnet.tizen/framework/ref/$FX cp /usr/share/dotnet.tizen/framework/$FX /tmp/fx_bb done rm -f /usr/share/dotnet.tizen/framework/*.dll cp -f /tmp/fx_bb/* /usr/share/dotnet.tizen/framework/ echo "Complete to making the tizenfx for iot" else echo "Warning : Can't make the tizenfx for iot" fi