3 cur_dir="./service/easy-setup"
5 spec=`ls ./service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/packaging/*.spec`
6 version=`rpm --query --queryformat '%{version}\n' --specfile $spec`
8 name=`echo $name|cut -d" " -f 1`
9 version=`echo $version|cut -d" " -f 1`
22 # Create directory structure for GBS Build
27 cp -R ./build_common $sourcedir/tmp
28 cp -R ./examples $sourcedir/tmp
30 # tinycbor is available as soft-link, so copying with 'dereference' option.
31 cp -LR ./extlibs/tinycbor $sourcedir/tmp/extlibs
32 rm -rf $sourcedir/tmp/extlibs/tinycbor/tinycbor/.git
34 cp -R ./extlibs/cjson $sourcedir/tmp/extlibs
35 cp -R ./extlibs/tinydtls $sourcedir/tmp/extlibs
36 cp -R ./extlibs/sqlite3 $sourcedir/tmp/extlibs
37 cp -R ./extlibs/timer $sourcedir/tmp/extlibs
38 cp -R ./extlibs/rapidxml $sourcedir/tmp/extlibs
39 cp -R ./resource $sourcedir/tmp
40 cp -R ./service $sourcedir/tmp
41 cp ./extra_options.scons $sourcedir/tmp
42 cp ./tools/tizen/*.spec ./tmp/packaging
43 cp ./tools/tizen/*.manifest ./tmp/packaging
47 # copy dependency RPMs and conf files for tizen build
48 cp ./tools/tizen/*.rpm ./tmp
49 cp ./tools/tizen/.gbs.conf ./tmp
50 cp ./tools/tizen/*.rpm $sourcedir/tmp/service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample
51 cp ./tools/tizen/.gbs.conf ./tmp/service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample
52 cp -R $sourcedir/iotivity.pc.in $sourcedir/tmp
59 # Initialize Git repository
60 if [ ! -d .git ]; then
62 git config user.email "you@example.com"
63 git config user.name "Your Name"
65 git commit -m "Initial commit"
68 echo "Calling core gbs build command"
69 gbscommand="gbs build -A armv7l --include-all --repository ./ --define 'TARGET_TRANSPORT $1' --define 'SECURED $2' --define 'RELEASE $5' --define 'LOGGING $6' --define 'ES_ROLE $7' --define 'ES_TARGET_ENROLLEE $8' --define 'ES_SOFTAP_MODE $9'"
71 if eval $gbscommand; then
72 echo "Core build is successful"
74 echo "Core build failed."
80 cd service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample
82 # Initialize Git repository
83 if [ ! -d .git ]; then
85 git config user.email "you@example.com"
86 git config user.name "Your Name"
88 git commit -m "Initial commit"
90 echo "Calling sample gbs build command"
91 gbscommand="gbs build -A armv7l -B ~/GBS-ROOT --include-all --repository ./ --define 'TARGET_TRANSPORT $1' --define 'SECURED $2' --define 'ROUTING $4' --define 'RELEASE $5' --define 'LOGGING $6' --define 'ES_ROLE $7' --define 'ES_TARGET_ENROLLEE $8' --define 'ES_SOFTAP_MODE $9'"
93 if eval $gbscommand; then
94 echo "Sample build is successful"
96 echo "Sample build is failed."
101 rm -rf $sourcedir/tmp