Hey, all!

The only way I found to avoid a full build is this:

# Keep descending into a directory tree but only as long as a directory has
only one subdirectory
get_out_root() { # $1: path so far
if test "x$(ls $1 | wc -l)x" = "x1x"; then
get_out_root $1/$(ls $1)
else
echo $1
fi
}

# iotivity wants us to clone this before it'll do anything
git clone https://github.com/01org/tinycbor.git extlibs/tinycbor/tinycbor
|| exit 1
scons $SCONS_FLAGS liboctbstack libconnectivity_abstraction libcoap
c_common libocsrm routingmanager || { cat config.log; exit 1; }

# Once the platform/architecture/etc. are established, we can request a
target by path
scons $SCONS_FLAGS $(get_out_root
./out)/resource/csdk/security/tool/json2cbor

If anybody knows a better way, please let me know!

TIA,



Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160527/c0248e88/attachment.html>

Reply via email to