rm -rf $name-$version
-echo $1
-export ES_SAMPLE=$1
-
builddir=`pwd`
sourcedir=`pwd`
gbscommand="gbs build -A armv7l -B ~/GBS-ROOT-OIC --include-all --repository ./"
echo $gbscommand
if eval $gbscommand; then
- echo "Build is successful"
-else
- echo "Build failed!"
- exit 1
-fi
-
-# Build EasySetup App. if ES_ON is entered on command prompt
-if echo $ES_SAMPLE|grep -qi '^ES_ON$'; then
- cd service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample
- echo `pwd`
- echo "EasySetup Sample Build is enabled"
-
- # Initialize Git repository for EnrolleeSample
- if [ ! -d .git ]; then
- git init ./
- git config user.email "you@example.com"
- git config user.name "Your Name"
- git add ./
- git commit -m "Initial commit"
- fi
- echo "Calling EasySetup Sample gbs build command"
- gbscommand="gbs build -A armv7l -B ~/GBS-ROOT-OIC --include-all --repository ./"
- echo $gbscommand
- if eval $gbscommand; then
- echo "EasySetup Sample build is successful"
- else
- echo "EasySetup Sample build is failed."
- exit 1
- fi
+ echo "Build is successful"
else
- echo "EasySetup Sample Build is not enabled"
+ echo "Build failed!"
+ exit 1
fi
rm -rf tmp