X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gbsbuild.sh;h=d9ab2462a0d2e522745c2328913c4b4f3f88a1a7;hb=6c9b1f10fefa3323329977ef93e3ab854a7d5ba2;hp=24a1cf827af3029cffcfacee86ac610a5a7b826d;hpb=1842a728cd7f4bf25bbdd9f736333de7fe55f3bc;p=platform%2Fupstream%2Fiotivity.git diff --git a/gbsbuild.sh b/gbsbuild.sh index 24a1cf8..d9ab246 100755 --- a/gbsbuild.sh +++ b/gbsbuild.sh @@ -15,14 +15,23 @@ sourcedir=`pwd` echo `pwd` +# Clean tmp directory. +rm -rf ./tmp + +# Create directory structure for GBS Build mkdir ./tmp mkdir ./tmp/extlibs/ mkdir ./tmp/packaging cp -R ./build_common $sourcedir/tmp cp -R ./examples $sourcedir/tmp -cp -R ./extlibs/tinycbor $sourcedir/tmp/extlibs + +# tinycbor is available as soft-link, so copying with 'dereference' option. +cp -LR ./extlibs/tinycbor $sourcedir/tmp/extlibs +rm -rf $sourcedir/tmp/extlibs/tinycbor/tinycbor/.git + cp -R ./extlibs/cjson $sourcedir/tmp/extlibs cp -R ./extlibs/tinydtls $sourcedir/tmp/extlibs +cp -R ./extlibs/sqlite3 $sourcedir/tmp/extlibs cp -R ./extlibs/timer $sourcedir/tmp/extlibs cp -R ./extlibs/rapidxml $sourcedir/tmp/extlibs cp -R ./resource $sourcedir/tmp @@ -31,8 +40,13 @@ cp ./extra_options.scons $sourcedir/tmp cp ./tools/tizen/*.spec ./tmp/packaging cp ./tools/tizen/*.manifest ./tmp/packaging cp ./SConstruct ./tmp + +# copy dependency RPMs and conf files for tizen build cp ./tools/tizen/*.rpm ./tmp cp ./tools/tizen/.gbs.conf ./tmp + +cp -R $sourcedir/iotivity.pc.in $sourcedir/tmp + cd $sourcedir/tmp echo `pwd` @@ -54,7 +68,10 @@ if eval $gbscommand; then echo "Build is successful" else echo "Build failed!" + exit 1 fi cd $sourcedir rm -rf $sourcedir/tmp + +exit 0