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