build: Enable preparing (downloading) on the fly
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Wed, 28 Sep 2016 19:20:43 +0000 (21:20 +0200)
committerPhilippe Coval <philippe.coval@osg.samsung.com>
Tue, 4 Apr 2017 14:32:10 +0000 (16:32 +0200)
Before, by default we did NOT want anything to downloaded build time,
 but this can be useful when executed by scripts
 that can not pass EXEC_MODE=true before calling prep.sh.

This change is welcome to be reverted if merged.

It is strongly recommended to rely on scons instead,
 if not possible, this can be done differently using this script.

For more details about building IoTivity please check:

https://wiki.iotivity.org/build

Bug: https://jira.iotivity.org/browse/IOT-820
Change-Id: I37556c086ee41d2dbe6224c717b203896fa1856a
Origin: https://gerrit.iotivity.org/gerrit/#/c/12499/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
prep.sh

diff --git a/prep.sh b/prep.sh
index c657f1e535064133b66f1c33ebbdadfb938fd46d..c3f12ac0587ab0c4b0dbf1ab2ba1d682ae65c91d 100755 (executable)
--- a/prep.sh
+++ b/prep.sh
@@ -2,7 +2,7 @@
 
 set -f
 
-[ ! -z ${EXEC_MODE} ] || EXEC_MODE=false
+[ ! -z ${EXEC_MODE} ] || EXEC_MODE=true
 
 topdir="${PWD}"