build: Suggest to download supported tinycbor
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Thu, 24 Nov 2016 16:47:25 +0000 (17:47 +0100)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Thu, 26 Jan 2017 21:51:05 +0000 (21:51 +0000)
Note this patch is appropriate for release versions (or branches)
 while master or development branches can follow upstream's master branch
 and eventually synched when needed.

Bug: https://jira.iotivity.org/browse/IOT-1600
Change-Id: I361a75fa9dd52739dce0daa8e14333c95e6c9284
Origin: https://gerrit.iotivity.org/gerrit/#/c/14763/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14763
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
(cherry picked from commit 16d6391f55577bae92cd458ef6a8dbafc57dc81b)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14805
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: Mike Finch <mike.f.finch@lowes.com>
Reviewed-by: Mats Wichmann <mats@linux.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-by: C.J. Collier <cjcollier@linuxfoundation.org>
extlibs/tinycbor/prep.sh

index b136253..dd533b1 100755 (executable)
@@ -5,13 +5,14 @@ set -e
 # Keep cborRevision in sync with extlibs/tinycbor/SConscript's setting. Right now this script
 # assumes cborRevision is a tag; comment out the second clause if cborRevision becomes
 # a branch or a specific commit.
+cborUrl="https://github.com/01org/tinycbor"
 cborDir="./extlibs/tinycbor/tinycbor"
 cborRevision="v0.4"
 if [ ! -d ${cborDir} ]; then
     echo ""
     echo "*********************************** Error: ****************************************"
     echo "* Please download TinyCBOR using the following command:                           *"
-    echo "*     $ git clone https://github.com/01org/tinycbor.git extlibs/tinycbor/tinycbor *"
+    echo "*     $ git clone ${cborUrl} ${cborDir} -b ${cborRevision} "
     echo "***********************************************************************************"
     echo ""
     exit