3 spec=`ls tools/tizen/*.spec`
4 version=`rpm --query --queryformat '%{version}\n' --specfile $spec`
6 name=`echo $name|cut -d" " -f 1`
7 version=`echo $version|cut -d" " -f 1`
21 cp -R ./build_common $sourcedir/tmp
22 cp -R ./examples $sourcedir/tmp
23 cp -R ./extlibs/tinycbor $sourcedir/tmp/extlibs
24 cp -R ./extlibs/cjson $sourcedir/tmp/extlibs
25 cp -R ./extlibs/tinydtls $sourcedir/tmp/extlibs
26 cp -R ./extlibs/timer $sourcedir/tmp/extlibs
27 cp -R ./extlibs/rapidxml $sourcedir/tmp/extlibs
28 cp -R ./resource $sourcedir/tmp
29 cp -R ./service $sourcedir/tmp
30 cp ./extra_options.scons $sourcedir/tmp
31 cp ./tools/tizen/*.spec ./tmp/packaging
33 cp ./tools/tizen/*.rpm ./tmp
34 cp ./tools/tizen/.gbs.conf ./tmp
36 cp -R $sourcedir/iotivity.pc.in $sourcedir/tmp
41 rm -rf ./extlibs/tinycbor/tinycbor/.git*
43 # Initialize Git repository
44 if [ ! -d .git ]; then
46 git config user.email "you@example.com"
47 git config user.name "Your Name"
49 git commit -m "Initial commit"
52 echo "Calling core gbs build command"
53 gbscommand="gbs build -A armv7l -B ~/GBS-ROOT --include-all --repository ./"
55 if eval $gbscommand; then
56 echo "Build is successful"