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`
18 # Clean tmp directory.
21 # Create directory structure for GBS Build
25 cp -R ./build_common $sourcedir/tmp
26 cp -R ./examples $sourcedir/tmp
28 # tinycbor is available as soft-link, so copying with 'dereference' option.
29 cp -LR ./extlibs/tinycbor $sourcedir/tmp/extlibs
30 rm -rf $sourcedir/tmp/extlibs/tinycbor/tinycbor/.git
32 cp -R ./extlibs/cjson $sourcedir/tmp/extlibs
33 cp -R ./extlibs/gtest $sourcedir/tmp/extlibs
34 cp -R ./extlibs/tinydtls $sourcedir/tmp/extlibs
35 cp -R ./extlibs/sqlite3 $sourcedir/tmp/extlibs
36 cp -R ./extlibs/timer $sourcedir/tmp/extlibs
37 cp -R ./extlibs/rapidxml $sourcedir/tmp/extlibs
38 cp -R ./resource $sourcedir/tmp
39 cp -R ./service $sourcedir/tmp
40 cp ./extra_options.scons $sourcedir/tmp
41 cp ./tools/tizen/*.spec ./tmp/packaging
42 cp ./tools/tizen/*.manifest ./tmp/packaging
46 # copy dependency RPMs and conf files for tizen build
47 cp ./tools/tizen/*.rpm ./tmp
48 cp ./tools/tizen/.gbs.conf ./tmp
50 cp -R $sourcedir/iotivity.pc.in $sourcedir/tmp
55 rm -rf ./extlibs/tinycbor/tinycbor/.git*
57 # Initialize Git repository
58 if [ ! -d .git ]; then
60 git config user.email "you@example.com"
61 git config user.name "Your Name"
63 git commit -m "Initial commit"
66 echo "Calling core gbs build command"
67 gbscommand="gbs build -A armv7l -B ~/GBS-ROOT-OIC --include-all --repository ./"
69 if eval $gbscommand; then
70 echo "Build is successful"