List child resource eps instead of parent.
[platform/upstream/iotivity.git] / prep.sh
1 #!/bin/sh
2
3 set -f
4 set -e
5
6 [ ! -z ${EXEC_MODE} ] || EXEC_MODE=false
7
8 topdir="${PWD}"
9
10
11 main_()
12 {
13     cat<<EOF
14 #
15 # WARNING: This helper script is DISCOURAGED to be used
16 #
17 #  Instead please use the supported build tool "scons"
18 #
19 #  However in some specific cases it's not possible
20 #  so this script is providing a fallback option.
21 #
22 #  Reminder: it's not safe to access online resources at build time,
23 #  so by default the script will tell what to do (like scons),
24 #  to enable tasks executions it should be run with EXEC_MODE enabled:
25 #
26 #  EXEC_MODE=true ./prep.sh
27 #
28 #  More details at:
29 #  https://wiki.iotivity.org/build
30 #
31 EOF
32
33     whereis bash > /dev/null || echo "error: please install: bash"
34     whereis git > /dev/null || echo "error: please install: git"
35     whereis unzip > /dev/null || echo "error: please install: unzip"
36     whereis wget > /dev/null || echo "error: please install: wget"
37
38     find ./extlibs/ -maxdepth 2 -a -iname "prep.sh" | xargs -n1 bash
39 }
40
41
42 main_